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; }
public FlyingDefaultState(FlyingStrategy context) : base(context) { }
public FlyingState(FlyingStrategy context) { this.context = context; }