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

Module behaviorcomponents

source code

Classes [hide private]
  BehaviorComponent
This is an abstract BehaviorComponent - a building block for AI Behavior.
  BehaviorDoNothing
Behavior that does nothing.
  BehaviorPirateRoutine
Idle behavior for Pirate player.
  BehaviorRegular
A well-balanced way to respond to situations in game.
  BehaviorAggressive
  BehaviorCautious
  BehaviorSmart
  BehaviorDiplomatic
Behaviors that handle diplomacy.
  BehaviorEvil
Diplomatic behavior.
  BehaviorGood
Diplomatic behavior.
  BehaviorNeutral
Diplomatic behavior.
  BehaviorDebug
  BehaviorRegularPirate
  BehaviorAggressivePirate
  BehaviorBreakDiplomacy
Temporary action for breaking diplomacy with other players.
  BehaviorCoward
  BehaviorPirateHater
Functions [hide private]
 
certainty_power_balance_exp(**environment)
Return power_balance^2, altering the exponent will impact the weight certainty has.
source code
 
certainty_power_balance_inverse(**environment)
Return power_balance reciprocal,
source code
 
certainty_are_enemies(**environment)
returns 0.0 if two players are enemies already, default certainty otherwise.
source code