Guest User

sf::Vector2f BlackBoard<Subject>::GetGoalPosition()

a guest
Apr 6th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. template<class Subject>
  2. sf::Vector2f BlackBoard<Subject>::GetGoalPosition()
  3. {
  4.     if (gameWorld->tankIter == gameWorld->tanks.end())
  5.     {
  6.         gameWorld->tankIter = gameWorld->tanks.begin();
  7.     }
  8.     auto it = gameWorld->tankIter;
  9.     return (*it)->enemyBasePosition;
  10.    
  11. }
Advertisement
Add Comment
Please, Sign In to add comment