Package horizons :: Package ai :: Package aiplayer :: Package behavior :: Module behaviorcomponents :: Class BehaviorSmart
[hide private]
[frames] | no frames]

Class BehaviorSmart

source code

BehaviorComponent --+
                    |
                   BehaviorSmart

Instance Methods [hide private]
 
fighting_ships_in_sight(self, **environment)
Attacks frigates, and keeps distance based on power balance.
source code
 
working_ships_in_sight(self, **environment)
Attacks working ships only if they are hostile.
source code
    Inherited from BehaviorComponent
 
__init__(self, owner) source code
 
_certainty_has_boat_builder(self, **environment) source code
 
_certainty_has_fleet(self, **environment) source code
 
certainty(self, action_name, **environment) source code
Class Variables [hide private]
    Inherited from BehaviorComponent
  default_certainty = 1.0
  log = logging.getLogger('ai.aiplayer.behavior.behaviorcomponen...
  minimal_fleet_size = 1