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