protected override void UpdateSubclass(GameTime gameTime)
 {
     if (this.flyingStrategy == null)
     {
         PlayerShip player = GameState.GetPlayerShip();
         if (player != null)
         {
             this.flyingStrategy = new NPCBasicAttackStrategy(this, player);
         }
     }
     else
     {
         this.flyingStrategy.ExecuteStrategy(gameTime);
     }
     base.UpdateSubclass(gameTime);
 }
 public FlyingFollowState(FlyingStrategy context, FlyingGameObject obj, FlyingGameObject followObj)
     : base(context)
 {
     this.obj = obj;
     this.followObj = followObj;
 }
Beispiel #3
0
 public FlyingFollowState(FlyingStrategy context, FlyingGameObject obj, FlyingGameObject followObj)
     : base(context)
 {
     this.obj       = obj;
     this.followObj = followObj;
 }
Beispiel #4
0
 public FlyingDefaultState(FlyingStrategy context)
     : base(context)
 {
 }
 public FlyingState(FlyingStrategy context)
 {
     this.context = context;
 }
 public FlyingState(FlyingStrategy context)
 {
     this.context = context;
 }