/// <summary> /// Executes the command in the given game context /// </summary> public override void Execute(Pirates.IPirateGame game) { // stop pirates from sailing to their own location if (this.Pirate.Location.Equals(this.ImmediateDestination)) { return; } game.SetSail(this.Pirate.NativeObject, this.ImmediateDestination.NativeObject); }
/// <summary> /// Executes the command in the given game context /// </summary> public override void Execute(Pirates.IPirateGame game) { game.Defend(this.Pirate.NativeObject); }
/// <summary> /// Executes the command in the given game context /// </summary> public override void Execute(Pirates.IPirateGame game) { game.Attack(this.AttackingPirate.NativeObject, this.AttackedPirate.NativeObject); }
/// <summary> /// Executes the command in the given game context /// </summary> public override void Execute(Pirates.IPirateGame game) { // do nothing command does nothing, ya know }
/// <summary> /// Executes the command in the given game context /// </summary> public abstract void Execute(Pirates.IPirateGame game);