13 vector< vector<Tile> > tiles;
14 vector<Object> objects;
15 vector<Entity> entities;
17 int tilewidth, tileheight;
24 bool activeCam, activeLens;
47 void move(
int mx,
int my);
48 void moveEntity(
int id,
int mx,
int my);
52 void setX(
double x) { this->x = x; }
54 void setY(
double y) { this->y = y; }
56 double getX()
const {
return x; }
58 double getY()
const {
return y; }
59 Object getScreen()
const {
return screen; }
76 void setCameraMargin(
int wm,
int hm);
77 void centerCamera(
int percentage);
78 void setLensMargin(
int wn,
int hm);
79 void centerLens(
int percentage);
This class stores information for an Object in the game.
Class for loading in multiple Tiles.
void create()
Create the Level based on the given stage.
int setMainEntity(Entity e)
Set main Entity.
vector< Object > getObjectsToRender()
Return the Objects that are currently on the screen.
double getY() const
Get the y coordinate.
double getX() const
Get the x coordinate.
The Stage class stores a Map and Tileset.
void setStage(Map m, Tileset t)
Create a Stage for the Level by giving a Map and a Tileset.
int addEntity(Entity e)
Add Entity to Level.
vector< Entity > getEntitiesToRender()
Return the Entities that are currently on the screen.
void setY(double y)
Set the y coordinate.
void setX(double x)
Set the x coordinate.
vector< Tile > getTilesToRender()
Return the Tiles that are currently on the screen.
void setCoord(double x, double y)
Set the coordinate for the screen with a given x and y.
void addObject(Object o)
Add Object to Level.
Class for storing health, emotion, team, etc. of an Object.
void setScale(int w, int h)
Scale the Level by giving it the width and height to scale by.
This class stores a Stage and Objects and can move them and display them.
void setScale(int s)
Scale the Level by giving it a single integer to scale by.
This class takes in a file and loads it in for the map.
void move(int mx, int my)
Move the screen by passing in how much to move on the x and y coordinates.
Class used for calculating different types of collision between given Objects.
void setStage(Stage s)
Give a Stage to the Level.
void calcPos()
Calculate the position of the level based on coordinates.
void setMap(Map m)
Set the Map by passing in a Map.
void setScreenSize(int w, int h)
Set the size of the screen by passing in the width and height.
void setTileset(Tileset t)
Set the Tileset with a given Tileset.
void setPrecise(bool p)
Active precise if you want the coordinates in a map file to go to that exact pixel, or leave it off if you want it to go to that Tile.