|
DIE Engine
|
#include <map.h>
Public Member Functions | |
| Map () | |
| void | init () |
| void | terminate () |
| void | update () |
| Animate the doors and the lifts. | |
| bool | save (const QString &filename, bool submap) |
| Save the map to a file. | |
| bool | load (const QString &filename) |
| Load the map, then its submaps, sounds and textures. | |
| void | pass (const QVector3D &camPos) |
| Push the map geometry and lights to the renderer. | |
| void | performAction (const QVector3D &pos) |
| Trigger the actionable objects (doors, lifts) close to a position. | |
| void | doorOpen (uint16_t dId) |
| void | doorClose (uint16_t dId) |
| void | doorShake (uint16_t dId) |
| void | liftStart (uint16_t eId) |
| void | liftStop (uint16_t eId) |
| void | speakerApplyFlags (uint16_t sId) |
| void | computeAllWalls () |
| Recompute the cached wall geometry (dir, normal, length). | |
| void | computeWall (uint16_t wId) |
| QString | getRelativePath (const QString &subMapPath) |
| QString | resolveRelativePath (const QString &subMapPath) |
| QList< Node > | findNodesByTag (const char *tagName) const |
| QList< Submap > | findSubmapsByTag (const char *tagName) const |
| QList< Door > | findDoorsByTag (const char *tagName) const |
| QList< Lift > | findLiftsByTag (const char *tagName) const |
| QList< Sprite > | findSpritesByTag (const char *tagName) const |
| QList< Light > | findLightsByTag (const char *tagName) const |
| QList< Speaker > | findSpeakersByTag (const char *tagName) const |
| QList< Path > | findPathsByTag (const char *tagName) const |
| int | findSubmapByName (const char *name) const |
| int | findDoorByName (const char *name) const |
| int | findLiftByName (const char *name) const |
| int | findSpriteByName (const char *name) const |
| int | findSpeakerByName (const char *name) const |
| int | findPathByName (const char *name) const |
| MapState | captureState () const |
| Snapshot the persistent map data (see MapState). | |
| void | restoreState (const MapState &state) |
| Restore a snapshot of the map data. | |
Public Attributes | |
| QVector3D | origin |
| float | pan |
| float | scale |
| QString | path |
| QImage | textures |
| Sun | sun |
| Fog | fog |
| QList< Node > | nodes |
| QList< Wall > | walls |
| QList< Submap > | submaps |
| QList< Door > | doors |
| QList< Lift > | lifts |
| QList< Sprite > | sprites |
| QList< Staircase > | staircases |
| QList< Light > | lights |
| QList< Speaker > | speakers |
| QList< Path > | paths |
| QList< Map > | maps |
| QList< QSpatialSound * > | sounds |
| Map::Map | ( | ) |
| void Map::computeAllWalls | ( | ) |
Recompute the cached wall geometry (dir, normal, length).
| void Map::computeWall | ( | uint16_t | wId | ) |
| void Map::doorClose | ( | uint16_t | dId | ) |
| void Map::doorOpen | ( | uint16_t | dId | ) |
| void Map::doorShake | ( | uint16_t | dId | ) |
| int Map::findDoorByName | ( | const char * | name | ) | const |
| QList< Door > Map::findDoorsByTag | ( | const char * | tagName | ) | const |
| int Map::findLiftByName | ( | const char * | name | ) | const |
| QList< Lift > Map::findLiftsByTag | ( | const char * | tagName | ) | const |
| QList< Light > Map::findLightsByTag | ( | const char * | tagName | ) | const |
| QList< Node > Map::findNodesByTag | ( | const char * | tagName | ) | const |
| int Map::findPathByName | ( | const char * | name | ) | const |
| QList< Path > Map::findPathsByTag | ( | const char * | tagName | ) | const |
| int Map::findSpeakerByName | ( | const char * | name | ) | const |
| QList< Speaker > Map::findSpeakersByTag | ( | const char * | tagName | ) | const |
| int Map::findSpriteByName | ( | const char * | name | ) | const |
| QList< Sprite > Map::findSpritesByTag | ( | const char * | tagName | ) | const |
| int Map::findSubmapByName | ( | const char * | name | ) | const |
| QList< Submap > Map::findSubmapsByTag | ( | const char * | tagName | ) | const |
| QString Map::getRelativePath | ( | const QString & | subMapPath | ) |
| void Map::init | ( | ) |
| void Map::liftStart | ( | uint16_t | eId | ) |
| void Map::liftStop | ( | uint16_t | eId | ) |
| bool Map::load | ( | const QString & | filename | ) |
Load the map, then its submaps, sounds and textures.
| filename | path of the map file |
| void Map::pass | ( | const QVector3D & | camPos | ) |
Push the map geometry and lights to the renderer.
| void Map::performAction | ( | const QVector3D & | pos | ) |
Trigger the actionable objects (doors, lifts) close to a position.
| QString Map::resolveRelativePath | ( | const QString & | subMapPath | ) |
| void Map::restoreState | ( | const MapState & | state | ) |
Restore a snapshot of the map data.
| bool Map::save | ( | const QString & | filename, |
| bool | submap ) |
Save the map to a file.
| filename | path of the map file |
| submap | skip the environment section (submaps do not carry one) |
| void Map::speakerApplyFlags | ( | uint16_t | sId | ) |
| void Map::terminate | ( | ) |
| void Map::update | ( | ) |
Animate the doors and the lifts.
| QList<Door> Map::doors |
| Fog Map::fog |
| QList<Lift> Map::lifts |
| QList<Light> Map::lights |
| QList<Map> Map::maps |
| QList<Node> Map::nodes |
| QVector3D Map::origin |
| float Map::pan |
| QString Map::path |
| QList<Path> Map::paths |
| float Map::scale |
| QList<QSpatialSound *> Map::sounds |
| QList<Speaker> Map::speakers |
| QList<Sprite> Map::sprites |
| QList<Staircase> Map::staircases |
| QList<Submap> Map::submaps |
| Sun Map::sun |
| QImage Map::textures |
| QList<Wall> Map::walls |