Arch Game Engine
0.2
|
This class stores a Stage and Objects and can move them and display them. More...
#include <level.h>
Public Member Functions | |
void | create () |
Create the Level based on the given stage. | |
void | setStage (Stage s) |
Give a Stage to the Level. | |
void | setStage (Map m, Tileset t) |
Create a Stage for the Level by giving a Map and a Tileset. | |
void | setScale (int w, int h) |
Scale the Level by giving it the width and height to scale by. | |
void | setScale (int s) |
Scale the Level by giving it a single integer to scale by. | |
void | calcPos () |
Calculate the position of the level based on coordinates. | |
vector< Tile > | getTilesToRender () |
Return the Tiles that are currently on the screen. | |
vector< Object > | getObjectsToRender () |
Return the Objects that are currently on the screen. | |
vector< Entity > | getEntitiesToRender () |
Return the Entities that are currently on the screen. | |
void | move (int mx, int my) |
Move the screen by passing in how much to move on the x and y coordinates. | |
void | moveEntity (int id, int mx, int my) |
void | setCoord (double x, double y) |
Set the coordinate for the screen with a given x and y. | |
void | setX (double x) |
Set the x coordinate. | |
void | setY (double y) |
Set the y coordinate. | |
double | getX () const |
Get the x coordinate. | |
double | getY () const |
Get the y coordinate. | |
Object | getScreen () const |
void | setScreenSize (int w, int h) |
Set the size of the screen by passing in the width and height. | |
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. | |
void | addObject (Object o) |
Add Object to Level. | |
void | addObject (vector< Object > o) |
Add vector of Objects to Level. | |
int | addEntity (Entity e) |
Add Entity to Level. | |
void | addEntity (vector< Entity > e) |
Add vector of Entity's to Level. | |
int | setMainEntity (Entity e) |
Set main Entity. | |
int | setMainEntity (int m) |
Tell Level which one Entity is the main one. | |
void | setCameraMargin (int wm, int hm) |
void | centerCamera (int percentage) |
void | setLensMargin (int wn, int hm) |
void | centerLens (int percentage) |
Object | getCamera () |
Object | getLens () |
This class stores a Stage and Objects and can move them and display them.