StarEngine
|
#include <TiledScene.h>
Classes | |
struct | TileSet |
Public Member Functions | |
TiledScene (const tstring &name, const tstring &file, float scale=1.0f) | |
virtual | ~TiledScene () |
void | DefineSpecialObject (uint32 object_id, const std::function< Object *()> &func) |
Public Member Functions inherited from star::BaseScene | |
BaseScene (const tstring &name) | |
virtual | ~BaseScene () |
status | BaseInitialize () |
status | BaseOnActivate () |
void | BaseOnDeactivate () |
status | BaseUpdate (const Context &context) |
status | BaseDraw () |
virtual void | OnSaveState (void **pData, size_t *pSize) |
virtual void | OnConfigurationChanged () |
virtual void | OnLowMemory () |
const tstring & | GetName () const |
bool | IsInitialized () const |
void | AddObject (Object *object) |
void | RemoveObject (Object *object) |
void | SetActiveCamera (BaseCamera *pCamera) |
BaseCamera * | GetActiveCamera () const |
std::shared_ptr< Stopwatch > | GetStopwatch () const |
Protected Member Functions | |
virtual status | CreateObjects () |
virtual status | AfterInitializedObjects (const star::Context &context) |
Protected Member Functions inherited from star::BaseScene | |
virtual status | AfterInitializedObjects () |
virtual status | OnActivate () |
virtual status | OnDeactivate () |
virtual status | Update (const Context &context) |
virtual status | Draw () |
void | CalculateViewPort () |
Protected Attributes | |
tstring | m_File |
uint32 | m_Width |
uint32 | m_Height |
uint32 | m_TileWidth |
uint32 | m_TileHeight |
float | m_Scale |
std::map< tstring, TileSet > | m_TileSets |
std::map< uint32, std::function< Object *()> > | m_DefinedObject |
Protected Attributes inherited from star::BaseScene | |
std::shared_ptr< GestureManager > | m_GestureManagerPtr |
std::vector< Object * > | m_Objects |
BaseCamera * | m_pDefaultCamera |
std::shared_ptr< Stopwatch > | m_pStopwatch |
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
Reimplemented from star::BaseScene.
void star::TiledScene::DefineSpecialObject | ( | uint32 | object_id, |
const std::function< Object *()> & | func | ||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |