Пример #1
0
 private void setGuardPoint(GuardEntity a_guard, Vector2 a_position, bool a_right)
 {
     if (a_right)
     {
         a_guard.setRightGuardPoint(getTileCoordinates(a_position).X);
     }
     else
     {
         a_guard.setLeftGuardPoint(getTileCoordinates(a_position).X);
     }
 }
Пример #2
0
 private void showGuardInfo(GuardEntity a_guard)
 {
     m_lineList.Clear();
     m_textGuardInfo.setText(" L: " + a_guard.getLeftPatrolPoint() + "R: " + a_guard.getRightPatrolPoint());
     m_lineList.AddLast(m_leftGuardPoint = a_guard.showLeftGuardPoint());
     m_lineList.AddLast(m_rightGuardPoint = a_guard.showRightGuardPoint());
 }
Пример #3
0
 private void setGuardPoint(GuardEntity a_guard, Vector2 a_position, bool a_right)
 {
     if (KeyboardHandler.shiftMod())
     {
         if (a_right)
         {
             a_guard.setRightGuardPoint(a_position.X);
         }
         else
         {
             a_guard.setLeftGuardPoint(a_position.X);
         }
     }
     else
     {
         if (a_right)
         {
             a_guard.setRightGuardPoint(getTileCoordinates(a_position).X);
         }
         else
         {
             a_guard.setLeftGuardPoint(getTileCoordinates(a_position).X);
         }
     }
 }