Example #1
0
 public void OnEvent(Event e)
 {
     switch (e.Type)
     {
         case EventType.CameraUp:
             yPan = 1;
             break;
         case EventType.CameraRight:
             xPan = -1;
             break;
         case EventType.CameraDown:
             yPan = -1;
             break;
         case EventType.CameraLeft:
             xPan = 1;
             break;
         case EventType.CameraUpEnd:
             yPan = 0;
             break;
         case EventType.CameraRightEnd:
             xPan = 0;
             break;
         case EventType.CameraDownEnd:
             yPan = 0;
             break;
         case EventType.CameraLeftEnd:
             xPan = 0;
             break;
     }
 }
Example #2
0
 public void OnEvent(Event e)
 {
     switch (e.Type)
     {
         case EventType.Select:
             newSel = e.Location;
             break;
     }
 }
 public void OnEvent(Event e)
 {
     switch(e.Type)
     {
         case EventType.End:
             ChangeScreen<MainMenuScreen>();
             break;
     }
 }
 public void OnEvent(Event e)
 {
     switch (e.Type)
     {
         case EventType.Action:
             p = e.Location;
             break;
         case EventType.Waypoint:
             waypoint = true;
             break;
         case EventType.WaypointOff:
             waypoint = false;
             break;
     }
 }
Example #5
0
 public void OnEvent(Event e)
 {
     Event newE = new Event(e.Type, gui.ScreenToWorld(e.Location), e.Scroll);
     op.OnEvent(newE);
 }
Example #6
0
 public void OnEvent(Event e)
 {
     human.OnEvent(e);
 }