comparison components/container.py @ 19:16c959864d41

Backed out changeset: 799fc37fec6d
author KarstenBock@gmx.net
date Wed, 10 Aug 2011 21:08:14 +0200
parents 9ffcb493a0f4
children def430d59281
comparison
equal deleted inserted replaced
18:702ee8e475df 19:16c959864d41
18 Component that allows an entity to contain one or more child entities. 18 Component that allows an entity to contain one or more child entities.
19 """ 19 """
20 20
21 def __init__(self): 21 def __init__(self):
22 Component.__init__(children=list, max_bulk=int) 22 Component.__init__(children=list, max_bulk=int)
23
24 def get_bulk(container):
25 bulk = 0
26 for child in container.children:
27 bulk += child.bulk
28 return bulk