ScummVM API documentation
hpl::cWorld2D Class Reference

Public Member Functions

 cWorld2D (tString asName, cGraphics *apGraphics, cResources *apResources, cSound *apSound, cCollider2D *apCollider)
 
tString GetName ()
 
bool CreateFromFile (tString asFile)
 
void Render (cCamera2D *apCamera)
 
void Update (float afTimeStep)
 
cVector2f GetWorldSize ()
 
iScriptGetScript ()
 
void ResetBodyIDCount ()
 
cLight2DPointCreateLightPoint (tString asName="")
 
void DestroyLight (iLight2D *apLight)
 
cGridMap2DGetGridMapLights ()
 
iLight2DGetLight (const tString &asName)
 
cBody2DCreateBody2D (const tString &asName, cMesh2D *apMesh, cVector2f avSize)
 
cGridMap2DGetGridMapBodies ()
 
cGridMap2DGetGridMapAreas ()
 
cArea2DGetArea (const tString &asName, const tString &asType)
 
cSoundSourceCreateSoundSource (const tString &asName, const tString &asSoundName, bool abVolatile)
 
void DestroySoundSource (cSoundSource *apSound)
 
cImageEntityCreateImageEntity (tString asName, tString asDataName)
 
cGridMap2DGetGridMapImageEntities ()
 
void DestroyImageEntity (cImageEntity *apEntity)
 
cImageEntityGetImageEntity (const tString &asName)
 
iParticleSystem2D * CreateParticleSystem (const tString &asName, const cVector3f &avSize)
 
void DestroyParticleSystem (iParticleSystem2D *apPS)
 
cTileMapGetTileMap ()
 
void CreateTileMap ()
 
cNode2DGetRootNode ()
 NODE METHODS //////////////////////.
 

Member Function Documentation

◆ GetArea()

cArea2D* hpl::cWorld2D::GetArea ( const tString asName,
const tString asType 
)

Gets an area on the map. This does a linear search and very fast.

Parameters
asNameThe name, if "" then the first of the correct type is returned
asTypeThe typem if "" then type doesn't matter.
Returns

The documentation for this class was generated from the following file: