Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Map.h
- *
- * Created on: Apr 21, 2017
- * Author: skatsner
- */
- #ifndef MAP_H_
- #define MAP_H_
- #include <iostream>
- #include <string>
- #include <vector>
- #include "RobotDB.h"
- #include "Printer.h"
- using std::string;
- using namespace std;
- extern vector <string> RobotNames;
- extern vector <int> Loc_X;
- extern vector <int> Loc_Y;
- extern vector <int> Ranks;
- extern vector <int> Tanks;
- /** Add a dirt to the map, meaning place 1 at x,y location
- * @param x: x coordinate
- * @param y: y coordinate
- */
- void addDirt(const int x, const int y);
- /**
- * Check if x,y coordinates is valid. valid - if the coordinates in the map is in the map limits.
- * @param x: x coordinate
- * @param y: y coordinate
- * @return: True if the if coordinates are valid, false otherwise.
- */
- bool inMapLimit (int x, int y);
- void Clean (const string&);
- #endif /* MAP_H_ */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement