Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. class World
  2. {
  3. public:
  4. std::vector<Object> ObjectVector;
  5. TileType MapArray[];
  6. };
  7.  
  8. enum TileType
  9. {
  10. GRASS = 1,
  11. TREE,
  12. };
  13.  
  14. class Tile
  15. {
  16. public:
  17. TileType Type;
  18. Point Pos;
  19. };
  20.  
  21. class Object
  22. {
  23. public:
  24. bool renderbool;
  25. private:
  26. Point pos;
  27. };
  28.  
  29. class Point
  30. {
  31. public:
  32. Point(int sX,int sY) {X = sX; Y = sY;}
  33. int X,Y;
  34. };
  35.  
  36. class Dimension
  37. {
  38. public:
  39. Dimension(int sHeight,int sWidth) {Height = sHeight; Width = sWidth;}
  40. int Height,Width;
  41. };
  42. class Rectangle
  43. {
  44. public:
  45. Rectangle(Dimension sdim,Point spoi) {dim = sdim; poi = spoi;}
  46. Rectangle(int X,int Y,int Height,int Width) {dim = Dimension(Height,Width); poi = Point(X,Y);}
  47. Dimension dim;
  48. Point poi;
  49. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement