Ejemplo n.º 1
0
        public override void ProcessMessage(Message message)
        {
            if (message is MouseMoveMessage)
            {
                ProcessMouseMoveMessage((MouseMoveMessage)message);
                //TODO: ideally, the tilecontroller would have an event and the handler would listen
                MousePosition = _tileController.Location;
                return;
            }
            if (message is MouseMessage)
            {
                ProcessMouseMessage((MouseMessage)message);
                //TODO: ideally, the tilecontroller would have an event and the handler would listen
                MousePosition = _tileController.Location;
                return;
            }
            if (message is MouseWheelMessage)
            {
                ProcessMouseWheelMessage((MouseWheelMessage)message);
                return;
            }
            if (message is UpdatePropertyMessage)
            {
                ProcessUpdateMessage((UpdatePropertyMessage)message);
            }

            //throw new InvalidOperationException("Unexpected message");
        }
Ejemplo n.º 2
0
 public bool Equals(Message other)
 {
     return other.Identifier == Identifier;
 }
Ejemplo n.º 3
0
		public override void ProcessMessage(Message message)
		{
			SetLayoutActionMessage msg = message as SetLayoutActionMessage;
			if (msg != null)
				Action.SetLayout(msg.Rows, msg.Columns);
		}
Ejemplo n.º 4
0
		public override void ProcessMessage(Message message)
		{
			// There should be no messages received.
			throw new NotImplementedException();
		}
Ejemplo n.º 5
0
	    public override void ProcessMessage(Message message)
		{
			if (message is ActionClickedMessage)
				Action.Click();
		}
Ejemplo n.º 6
0
		public override void ProcessMessage(Message message)
		{
		}