#ifndef BACKGROUND_H #define BACKGROUND_H #include #include #include #include #include "num/num.h" #include "player.h" struct Map { /*width, height and the number of layer of the map*/ int w, h, nblayers; /*the tileset to use*/ bopti_image_t *tileset; int tileset_size; /*list of all the tiles*/ short *layers[]; }; class Level { public: Level( ); ~Level( ); void Update( float dt ); void Render( void ); void RenderSelected( void ); void ChangeMap( int level, Player *MyPlayer ); void UpdateDataMap( Player *MyPlayer ); bool CanGo( Player *MyPlayer ); private: int GetTileBackground( uint8_t x, uint8_t y ); int GetTileForeground( uint8_t x, uint8_t y ); }; #endif