![]() |
Dragonfly 2.2
A text-based game engine
|
Public Member Functions | |
| int | removeObject (GameObject *p_go) |
| Insert/remove objects. | |
| int | removeObject (ViewObject *p_vo) |
| int | insertObject (GameObject *p_go) |
| int | insertObject (ViewObject *p_vo) |
| ObjectList | gameObjects () |
| Return GameObjects. Empty list if none. | |
| ObjectList | solidGameObjects () |
| ObjectList | visibleGameObjects (int altitude) |
| ObjectList | viewObjects () |
| Return ViewObjects. Empty list if none. | |
| ObjectList | visibleViewObjects () |
| int | getLevel () |
| Return current game level. | |
| int | setLevel (int new_level) |
| Set game level. Return 0 if ok, else -1. | |
| int | updateAltitude (GameObject *p_go, int new_alt) |
| Re-position object in SceneGraph to new altitude. | |
| int | updateSolidness (GameObject *p_go, Solidness new_solidness) |
| int | updateVisibility (ViewObject *p_go, bool new_visibility) |
| int | updateVisibility (GameObject *p_vo, bool new_visibility) |
| int | updatePersistence (GameObject *p_go, bool new_persistence) |
| int | updatePersistence (ViewObject *p_vo, bool new_persistence) |
Protected Attributes | |
| int | level |
| "Level" the game is on | |
| ObjectList | game_objects [MAX_LEVEL+1] |
| ObjectList | solid_game_objects [MAX_LEVEL+1] |
| ObjectList | visible_game_objects [MAX_LEVEL+1][MAX_ALTITUDE+1] |
| ObjectList | view_objects [MAX_LEVEL+1] |
| ObjectList | visible_view_objects [MAX_LEVEL+1] |
| int SceneGraph::updateAltitude | ( | GameObject * | p_go, |
| int | new_alt | ||
| ) |
Re-position object in SceneGraph to new altitude.
Return 0 if ok, else -1.
1.7.3