Beispiel #1
0
 public override void SetStateMachine(AIStateMachine stateMachine)
 {
     if (stateMachine.GetType() == typeof(AIZombieStateMachine))
     {
         base.SetStateMachine(stateMachine);
         _zombieStateMachine = (AIZombieStateMachine)stateMachine;
     }
 }
Beispiel #2
0
 public override void SetAIStateMachine(AIStateMachine aIStateMachine)
 {
     if (aIStateMachine.GetType() == typeof(AIZombieStateMachine))
     {
         _zombieStateMachine = (AIZombieStateMachine)aIStateMachine;
     }
     base.SetAIStateMachine(aIStateMachine);
 }
 // -------------------------------------------------------------------------------------
 // Name	:	SetStateMachine
 // Desc	:	Check for type compliance and store reference as derived type
 // -------------------------------------------------------------------------------------
 public override void SetStateMachine(AIStateMachine stateMachine)
 {
     if (stateMachine.GetType() == typeof(AIBossStateMachine))
     {
         base.SetStateMachine(stateMachine);
         _enemyStateMachine = (AIBossStateMachine)stateMachine;
     }
 }
 /// <summary>
 /// Checks for type compliance and stores the reference as the derived type
 /// </summary>
 /// <param name="stateMachine"></param>
 public override void SetStateMachine(AIStateMachine stateMachine)
 {
     if (stateMachine.GetType() == typeof(AIWerewolfStateMachine))
     {
         base.SetStateMachine(stateMachine);
         _werewolfStateMachine = (AIWerewolfStateMachine)stateMachine;
     }
 }