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

Class BehaviorAggressive

source code

BehaviorComponent --+
                    |
                   BehaviorAggressive

Instance Methods [hide private]
 
__init__(self, owner) source code
 
_certainty_fighting_ships_in_sight(self, **environment) 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_neutral_player(self, **environment) source code
 
neutral_player(self, **environment)
Start war with neutral player -make a SurpriseAttack if possible.
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 = 0.8
    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)
(Constructor)

source code 
Overrides: BehaviorComponent.__init__

neutral_player(self, **environment)

source code 

Start war with neutral player -make a SurpriseAttack if possible. -break diplomacy otherwise.