def __init__(self, player): super(BehaviorProfileBalanced, self).__init__() self.conditions = { ConditionHostile(player): 1.1, ConditionSharingSettlement(player): 1.0, ConditionNeutral(player): 0.3, ConditionAllied(player): 0.29, } self.actions[BehaviorManager.action_types.offensive][BehaviorRegular( player)] = 0.8 self.actions[BehaviorManager.action_types.offensive][ BehaviorAggressive(player)] = 0.2 self.actions[BehaviorManager.action_types.idle][BehaviorDoNothing( player)] = 1.0 self.strategies[BehaviorManager.strategy_types.offensive][ BehaviorRegular(player)] = 1.0 self.strategies[BehaviorManager.strategy_types.diplomatic][ BehaviorEvil(player)] = 0.05 self.strategies[BehaviorManager.strategy_types.diplomatic][ BehaviorNeutral(player)] = 0.9 self.strategies[BehaviorManager.strategy_types.diplomatic][ BehaviorGood(player)] = 0.05
def __init__(self, player): super(BehaviorProfileCautious, self).__init__() self.conditions = { ConditionHostile(player): 0.9, #ConditionSharingSettlement(player): 1.0, # does not respond to enemy sharing a settlement ConditionNeutral(player): 0.3, ConditionAllied(player): 0.29, } self.actions[BehaviorManager.action_types.offensive][BehaviorRegular(player)] = 0.8 self.actions[BehaviorManager.action_types.idle][BehaviorDoNothing(player)] = 1.0 self.strategies[BehaviorManager.strategy_types.offensive][BehaviorRegular(player)] = 1.0 self.strategies[BehaviorManager.strategy_types.diplomatic][BehaviorGood(player)] = 0.7 self.strategies[BehaviorManager.strategy_types.diplomatic][BehaviorNeutral(player)] = 0.3
def __init__(self, player): super(BehaviorProfileDebug, self).__init__() self.conditions = { #ConditionHostile(player): 1.1, #ConditionSharingSettlement(player): 1.0, ConditionNeutral(player): 0.4, #ConditionAllied(player): 0.3, #ConditionDebug(player): 1.0, } self.actions[BehaviorManager.action_types.offensive][BehaviorSmart(player)] = 1.0 self.strategies[BehaviorManager.strategy_types.offensive][BehaviorRegular(player)] = 1.0 #self.strategies[BehaviorManager.strategy_types.diplomatic][BehaviorAggressive(player)] = 0.02 #self.strategies[BehaviorManager.strategy_types.diplomatic][BehaviorDebug(player)] = 1.0 #self.strategies[BehaviorManager.strategy_types.diplomatic][BehaviorEvil(player)] = 1.0 #self.strategies[BehaviorManager.strategy_types.diplomatic][BehaviorGood(player)] = 1.0 self.strategies[BehaviorManager.strategy_types.diplomatic][BehaviorNeutral(player)] = 1.0