Package horizons :: Package ai :: Package aiplayer :: Module unitbuilder :: Class UnitBuilder
[hide private]
[frames] | no frames]

Class UnitBuilder

source code

An object of this class builds the units of one player.

Instance Methods [hide private]
 
__init__(self, owner) source code
 
_get_boat_builders(self)
Return a list of all boat builders owned by the player.
source code
 
build_ship(self)
Build a new usable fishing boat.
source code
 
build_combat_ship(self)
Build a new frigate ship
source code
 
_ship_built(self, production)
Called when a new ship has been built.
source code
 
num_ships_being_built(self)
Return the number of ships being built by all the boat builders of the player.
source code
 
__str__(self) source code
Class Variables [hide private]
  log = logging.getLogger("ai.aiplayer.unit_builder")
Method Details [hide private]

num_ships_being_built(self)

source code 

Return the number of ships being built by all the boat builders of the player.

Decorators:
  • @property