Package horizons :: Package ai :: Package aiplayer :: Package goal :: Module feederchaingoal :: Class FeederMedicalProductsGoal
[hide private]
[frames] | no frames]

Class FeederMedicalProductsGoal

source code

                           Goal --+            
                                  |            
      settlementgoal.SettlementGoal --+        
                                      |        
productionchaingoal.ProductionChainGoal --+    
                                          |    
                            FeederChainGoal --+
                                              |
                                             FeederMedicalProductsGoal

Instance Methods [hide private]
 
__init__(self, settlement_manager) source code
 
get_personality_name(self)
Return the name of the goal's personality module.
source code
 
can_be_activated(self)
Return True if and only if it is ok to update this goal.
source code
    Inherited from FeederChainGoal
 
_update_needed_amount(self) source code
 
execute(self)
Do whatever is best to get closer to fulfilling the goal (usually involves building a building).
source code
 
priority(self) source code
 
update(self)
Update the goal to find out whether it is currently active and what its current priority is.
source code
    Inherited from productionchaingoal.ProductionChainGoal
 
active(self)
Return True if and only if it is ok to execute this goal.
source code
    Inherited from settlementgoal.SettlementGoal
 
__str__(self) source code
 
_log_generic_build_result(self, result, name) source code
    Inherited from Goal
 
__lt__(self, other) 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]

__init__(self, settlement_manager)
(Constructor)

source code 
Overrides: Goal.__init__

get_personality_name(self)

source code 

Return the name of the goal's personality module.

Overrides: Goal.get_personality_name
(inherited documentation)

can_be_activated(self)

source code 

Return True if and only if it is ok to update this goal.

Decorators:
  • @property
Overrides: Goal.can_be_activated
(inherited documentation)