Exemplo n.º 1
0
 private void checkIfFollowPartyStillOnMap()
 {
     if (FollowData.getFollowParty() != null)
     {
         if (FollowData.getFollowParty().IsWaiting())
         {
             FollowData.stopFollowing();
         }
     }
 }
Exemplo n.º 2
0
 private void toggleFollowOnMouseClick()
 {
     if (FollowData.getIsFollowActive())
     {
         FollowData.stopFollowing();
     }
     else
     {
         if (MobileParty.MainParty.TargetParty != null)
         {
             FollowData.startFollowing(MobileParty.MainParty.TargetParty);
         }
     }
 }
Exemplo n.º 3
0
 private void checkForUserInput()
 {
     if (topScreen != null)
     {
         if (topScreen.DebugInput.IsKeyPressed(InputKey.F))
         {
             toggleFollowOnMouseClick();
         }
         else if (topScreen.DebugInput.IsKeyPressed(InputKey.LeftMouseButton))
         {
             if (FollowData.getIsFollowActive())
             {
                 FollowData.stopFollowing();
             }
         }
     }
 }