示例#1
0
        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;
            }
        }
示例#2
0
 public abstract void ExecuteAction(LampAction action);