Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<string>
- using namespace std;
- #ifndef MAP_H
- #define MAP_H
- class Map
- {
- private:
- string m_name;
- string m_description;
- string m_toWest;
- string m_toEast;
- string m_toNorth;
- string m_toSouth;
- int m_mapIndex;
- Map() { };
- public:
- Map(int mapIndex, string name, string description, string toWest, string toEast, string toNorth, string toSouth);
- void setName(string name);
- void setDescription(string description);
- void setMapIndex(int mapIndex);
- void setNeighbors(string toWest, string toEast, string toNorth, string toSouth);
- void displayDescription();
- bool hasNeighbor(string direction);
- string getName() { return m_name; }
- string getDescription() { return m_description; }
- int getmapIndex() { return m_mapIndex; }
- int getNeighbor(string direction);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement