Guest User

Untitled

a guest
May 25th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. //Ryan Fraser
  2. //200256414
  3. //CS115 Assignment 2
  4. //Filename: world.h
  5. //Purpose: contains the declarations for world.cpp
  6.  
  7. #ifndef __WORLD_H__
  8. #define __WORLD_H__
  9. #include <iostream>
  10. #include <fstream>
  11. #include <string>
  12. #include "Location.h"
  13. #include <stdio.h>
  14. #include <stdlib.h>
  15. using namespace std;
  16.  
  17. typedef int world[10][10];
  18. world w;
  19.  
  20. class World
  21. {
  22. public:
  23. World(string);
  24. World(const World&);
  25. Location getStartLocation() const;
  26. bool isVictoryNode (const Location& location ) const;
  27. bool cangonorth (const Location& location) const;
  28. bool cangoeast (const Location& location) const;
  29. bool cangosouth (const Location& location) const;
  30. bool cangowest (const Location& location) const;
  31. Location getNorth (const Location& location) const;
  32. Location getEast (const Location& location) const;
  33. Location getSouth (const Location& location) const;
  34. Location getWest (const Location& location) const;
  35. void printDescription (const Location& location) const;
  36. private:
  37. int rows;
  38. int columns;
  39. int inaccessible;
  40. int start;
  41. int victory;
  42. };
  43. #endif
Add Comment
Please, Sign In to add comment