Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class World
- {
- public:
- std::vector<Object> ObjectVector;
- TileType MapArray[];
- };
- enum TileType
- {
- GRASS = 1,
- TREE,
- };
- class Tile
- {
- public:
- TileType Type;
- Point Pos;
- };
- class Object
- {
- public:
- bool renderbool;
- private:
- Point pos;
- };
- class Point
- {
- public:
- Point(int sX,int sY) {X = sX; Y = sY;}
- int X,Y;
- };
- class Dimension
- {
- public:
- Dimension(int sHeight,int sWidth) {Height = sHeight; Width = sWidth;}
- int Height,Width;
- };
- class Rectangle
- {
- public:
- Rectangle(Dimension sdim,Point spoi) {dim = sdim; poi = spoi;}
- Rectangle(int X,int Y,int Height,int Width) {dim = Dimension(Height,Width); poi = Point(X,Y);}
- Dimension dim;
- Point poi;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement