Example #1
0
 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;
 }
Example #3
0
 public FlyingFollowState(FlyingStrategy context, FlyingGameObject obj, FlyingGameObject followObj)
     : base(context)
 {
     this.obj       = obj;
     this.followObj = followObj;
 }
Example #4
0
 public FlyingDefaultState(FlyingStrategy context)
     : base(context)
 {
 }
 public FlyingState(FlyingStrategy context)
 {
     this.context = context;
 }
 public FlyingState(FlyingStrategy context)
 {
     this.context = context;
 }