public override void ExecuteAction(LampAction action) { var zAction = (ZombieLampAction) action; switch (zAction.ZombieActionType) { case ZombieActionType.MovePlayer: var zMoveAction = (MovePlayerZombieLampAction) zAction; Console.Log(string.Format("{0} wants to move to {1} {2}", zAction.User.PlayerName, zMoveAction.X, zMoveAction.Y)); break; } }
public abstract void ExecuteAction(LampAction action);