예제 #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;
     }
 }
예제 #2
0
 public void OnEvent(Event e)
 {
     switch (e.Type)
     {
         case EventType.Select:
             newSel = e.Location;
             break;
     }
 }
예제 #3
0
 public void OnEvent(Event e)
 {
     switch(e.Type)
     {
         case EventType.End:
             ChangeScreen<MainMenuScreen>();
             break;
     }
 }
예제 #4
0
 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;
     }
 }
예제 #5
0
 public void OnEvent(Event e)
 {
     Event newE = new Event(e.Type, gui.ScreenToWorld(e.Location), e.Scroll);
     op.OnEvent(newE);
 }
예제 #6
0
 public void OnEvent(Event e)
 {
     human.OnEvent(e);
 }