Пример #1
0
 protected void getPlayerstatus()
 {
     if (player != null)
     {
         locInfo.mainDirection  = CollisionHandler.CheckDirection(this.CollisionRect(), player.CollisionRect());
         locInfo.mainDistance   = getDistance(locInfo.mainDirection);
         locInfo.minorDirection = getMinorDirection(locInfo.mainDirection);
         locInfo.minorDistance  = getDistance(locInfo.minorDirection);
     }
 }
Пример #2
0
 public EventHandler(Map currmap)
 {
     _currmap              = currmap;
     CollisionHandler      = new CollisionHandler(_currmap);
     EntityBehaviorHandler = new EntityBehaviorHandler(_currmap);
 }