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

Class BehaviorRegularPirate

source code

BehaviorComponent --+

Instance Methods [hide private]
__init__(self, owner) source code
fighting_ships_in_sight(self, **environment)
Attacks frigates only if they are enemies already and the power balance is advantageous.
source code
_certainty_pirate_routine(self, **environment) source code
pirate_routine(self, **environment)
Strategy that spawns pirate's idle-sailing routine.
source code
    Inherited from BehaviorComponent
_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]
  power_balance_threshold = 1.0
    Inherited from BehaviorComponent
  default_certainty = 1.0
  log = logging.getLogger('ai.aiplayer.behavior.behaviorcomponen...
  minimal_fleet_size = 1
Method Details [hide private]

__init__(self, owner)

source code 
Overrides: BehaviorComponent.__init__