public void performAction(Player player) { switch (cardType) { case CardType.Tax: player.TransferMoney(Board.Banker, value); break; case CardType.Reward: Board.Banker.TransferMoney(player, value); break; case CardType.MoveRelative: player.MoveRelative(value); break; case CardType.MoveAbsolute: player.MoveAbsolute(value); break; } }
public override void PerformAction(Player inhabitant) { throw new NotImplementedException(); }
public abstract void PerformAction(Player inhabitant);
public static void PassGo(Player dest) { Banker.TransferMoney(dest, 200); }