- #ifndef _WORLD_H_
- #define _WORLD_H_
- #include <stdlib.h>
- #include "constants.h"
- class Area
- {
- private:
- int ID;
- Pos pos;
- int size;
- int type;
- Texture tex;
- public:
- Area();
- ~Area();
- void Setup(Pos position, int Type);
- void setID(int id){this->ID = id;}
- int getID(){return this->ID;}
- void setSize(int Size){this->size = Size;}
- void Draw();
- };
- class World
- {
- private:
- Area **matrix;
- int fieldsize;
- int fieldsX;
- int fieldsY;
- public:
- World(int FieldSize, int solX, int solY);
- ~World();
- Area **Matrix(){return this->matrix;}
- void Draw();
- };
- #endif