Package horizons :: Package ai :: Package aiplayer :: Package goal :: Module storagespace :: Class StorageSpaceGoal
[hide private]
[frames] | no frames]

Class StorageSpaceGoal

source code

                                         Goal --+        
                                                |        
                    settlementgoal.SettlementGoal --+    
                                                    |    
improvecollectorcoverage.ImproveCollectorCoverageGoal --+
                                                        |
                                                       StorageSpaceGoal

Instance Methods [hide private]
 
get_personality_name(self)
Return the name of the goal's personality module.
source code
 
_need_more_storage(self) source code
 
update(self)
Update the goal to find out whether it is currently active and what its current priority is.
source code
 
execute(self)
Do whatever is best to get closer to fulfilling the goal (usually involves building a building).
source code
    Inherited from improvecollectorcoverage.ImproveCollectorCoverageGoal
 
_build_extra_road(self)
Build an extra road between a storage building and a producer building.
source code
 
_build_extra_road_connection(self, building, collector_building) source code
 
_build_extra_storage(self)
Build an extra storage tent to improve collector coverage.
source code
 
_get_problematic_collector_coverage_buildings(self) source code
 
active(self)
Return True if and only if it is ok to execute this goal.
source code
    Inherited from settlementgoal.SettlementGoal
 
__init__(self, settlement_manager) source code
 
__str__(self) source code
 
_log_generic_build_result(self, result, name) source code
 
can_be_activated(self)
Return True if and only if it is ok to update this goal.
source code
    Inherited from Goal
 
__lt__(self, other) source code
 
priority(self) source code
Class Methods [hide private]
    Inherited from Goal
 
_translate_build_result(cls, result)
Returns the goal execution state that corresponds to the given BUILD_RESULT constant.
source code
Class Variables [hide private]
    Inherited from Goal
  log = logging.getLogger("ai.aiplayer.goal")
Method Details [hide private]

get_personality_name(self)

source code 

Return the name of the goal's personality module.

Overrides: Goal.get_personality_name
(inherited documentation)

update(self)

source code 

Update the goal to find out whether it is currently active and what its current priority is.

Overrides: Goal.update
(inherited documentation)

execute(self)

source code 

Do whatever is best to get closer to fulfilling the goal (usually involves building a building).

Overrides: Goal.execute
(inherited documentation)