Beispiel #1
0
 def __init__( self, board, category ):
     self.board = board
     self.category = category
     self.goods = GameItemTypes.getSubAttributes( self.category )
     self.__producers = GameItemTypes.getObjectTypesWithAttribute( self.category + ".*", lambda v : v > 0 )
     self.__detailedConsumers = GameItemTypes.getObjectTypesWithAttribute( self.category + ".*", lambda v : v < 0 )
     self.__globalConsumers = GameItemTypes.getObjectTypesWithAttribute( self.category, lambda v : v < 0 )
Beispiel #2
0
 def __init__( self, board ):
     self.board = board
     self.categories = GameItemTypes.getSubAttributes( "Housing" )
     self.__houses = GameItemTypes.getObjectTypesWithAttribute( "Housing.*" )