31 #include "hpl1/engine/game/GameTypes.h" 32 #include "hpl1/engine/graphics/GraphicsTypes.h" 33 #include "hpl1/engine/math/MathTypes.h" 34 #include "hpl1/engine/system/SystemTypes.h" 36 #include "hpl1/engine/scene/SoundSource.h" 37 #include "common/stablemap.h" 58 class cParticleManager;
62 class iParticleSystem2D;
71 tString GetName() {
return msName; }
73 bool CreateFromFile(
tString asFile);
77 void Update(
float afTimeStep);
79 cVector2f GetWorldSize() {
return mvWorldSize; }
81 iScript *GetScript() {
return mpScript; }
83 void ResetBodyIDCount() { mlBodyIDCount = 0; }
88 void DestroyLight(
iLight2D *apLight);
95 cGridMap2D *GetGridMapBodies() {
return mpMapBodies; }
98 cGridMap2D *GetGridMapAreas() {
return mpMapAreas; }
116 cGridMap2D *GetGridMapImageEntities() {
return mpMapImageEntities; }
122 iParticleSystem2D *CreateParticleSystem(
const tString &asName,
const cVector3f &avSize);
123 void DestroyParticleSystem(iParticleSystem2D *apPS);
127 cTileMap *GetTileMap() {
return mpTileMap; }
129 void CreateTileMap();
163 void UpdateEntities();
165 void UpdateParticles();
166 void UpdateSoundSources();
170 void RenderImagesEntities(
cCamera2D *apCamera);
171 void RenderParticles(
cCamera2D *apCamera);
174 int LoadTileData(
cTile *apTile,
tString *asData,
int alStart);
179 #endif // HPL_WOLRD2D_H
Definition: Light2DPoint.h:35
cNode2D * GetRootNode()
NODE METHODS //////////////////////.
Definition: World2D.h:132
cArea2D * GetArea(const tString &asName, const tString &asType)
Definition: Collider2D.h:48
Definition: GridMap2D.h:147
Definition: Resources.h:160
Definition: SoundSource.h:42
Definition: tinyxml.h:864
Definition: Graphics.h:46
Definition: Camera2D.h:38
Definition: ImageEntity.h:44