public void Behave() { if (!dead) { behavior.Behave(); } }
/// <summary> /// Executes behavior with given context /// </summary> /// <param name="context">The context.</param> /// <returns></returns> public override BehaviorReturnCode Behave(IBehaviorContext context) { PlayerBehaviorContext playerContext = context as PlayerBehaviorContext; if (playerContext == null) { returnCode = BehaviorReturnCode.Failure; return(returnCode); } Behavior = playerContext.Player.Race.TradeBehavior; if (Behavior == null) { returnCode = BehaviorReturnCode.Failure; return(returnCode); } returnCode = Behavior.Behave(context); return(returnCode); }
public void OnCardDestroy() { destroyBehavior.Behave(); }
public void OnCardInvoke() { invokeBehavior.Behave(); }
public override BehaviorReturnCode Behave() { return(s_Behavior.Behave()); }
public BehaviorReturnCode Behave() { return(behavior.Behave()); }
public void OnDefence() { defenseBehavior.Behave(); }
public void OnAttack() { attackBehavior.Behave(); }