Advertisement
zCool

Map Navigator II Map.h

May 13th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1. #include<string>
  2. using namespace std;
  3.  
  4. #ifndef MAP_H
  5. #define MAP_H
  6.  
  7. class Map
  8. {
  9. private:
  10.     string m_name;
  11.     string m_description;
  12.     string m_toWest;
  13.     string m_toEast;
  14.     string m_toNorth;
  15.     string m_toSouth;
  16.     int m_mapIndex;
  17.  
  18.     Map() { };
  19.  
  20. public:
  21.     Map(int mapIndex, string name, string description, string toWest, string toEast, string toNorth, string toSouth);
  22.     void setName(string name);
  23.     void setDescription(string description);
  24.     void setMapIndex(int mapIndex);
  25.     void setNeighbors(string toWest, string toEast, string toNorth, string toSouth);
  26.     void displayDescription();
  27.     bool hasNeighbor(string direction);
  28.    
  29.  
  30.     string getName() { return m_name; }
  31.     string getDescription() { return m_description; }
  32.     int getmapIndex() { return m_mapIndex; }
  33.     int getNeighbor(string direction);
  34. };
  35.  
  36. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement