Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. /*
  2. * Map.h
  3. *
  4. * Created on: Apr 21, 2017
  5. * Author: skatsner
  6. */
  7.  
  8. #ifndef MAP_H_
  9. #define MAP_H_
  10.  
  11. #include <iostream>
  12. #include <string>
  13. #include <vector>
  14. #include "RobotDB.h"
  15. #include "Printer.h"
  16.  
  17. using std::string;
  18. using namespace std;
  19.  
  20. extern vector <string> RobotNames;
  21. extern vector <int> Loc_X;
  22. extern vector <int> Loc_Y;
  23. extern vector <int> Ranks;
  24. extern vector <int> Tanks;
  25.  
  26. /** Add a dirt to the map, meaning place 1 at x,y location
  27. * @param x: x coordinate
  28. * @param y: y coordinate
  29. */
  30. void addDirt(const int x, const int y);
  31.  
  32. /**
  33. * Check if x,y coordinates is valid. valid - if the coordinates in the map is in the map limits.
  34. * @param x: x coordinate
  35. * @param y: y coordinate
  36. * @return: True if the if coordinates are valid, false otherwise.
  37. */
  38. bool inMapLimit (int x, int y);
  39. void Clean (const string&);
  40.  
  41.  
  42. #endif /* MAP_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement