#include <ObjectManager.h>
Collaboration diagram for Teddy::SpaceGame::ObjectManager:

Public Methods | |
| ObjectManager (Root *root) | |
| ObjectManager constructor. More... | |
| void | updateObjects () |
| void | addObjects () |
| Initialize objects == scene. More... | |
| void | addLights (int num=1, const bool animate=false) |
| Add preset light(s) to scene. More... | |
| void | addGrid (int xcount, int zcount, int xspace, int zspace) |
| Add simple grid to scene. More... | |
| void | addPrimitives () |
| Add primitive objects to scene. More... | |
| void | loadLWO () |
| void | addFFE () |
| Add FFE ships. More... | |
| void | addROAM () |
| Test ROAM object. More... | |
| void | addRigidBodies () |
| void | rayCollision (ModelInstance *mi) |
| Camera * | getCamera () |
| void | setActiveCamera (Camera *c) |
| Scene * | getScene () |
| PlayerShip * | getPlayerShip () |
| ShipCamera * | getShipCamera () |
| void | instanceRotate (const int x, const int y) |
| rotate instance. More... | |
| void | instanceScale (const int x, const int y) |
| scale instance. More... | |
| void | instanceTranslateXZ (const int x, const int y) |
| translate instance on XZ plane. More... | |
| void | instanceTranslateYZ (const int x, const int y) |
| translate instance on YZ plane. More... | |
| void | selectInstance (const int x, const int y) |
| Mouse buttonpress event. More... | |
Protected Attributes | |
| Root * | root |
| Scene * | scene |
| Container for renderable 3D objects. More... | |
| Camera * | camera |
| User controllable camera. More... | |
| Camera * | camera2 |
| Another User controllable camera. More... | |
| Camera * | active_camera |
| ShipCamera * | player_camera |
| Player ship camera;. More... | |
| ModelInstance * | instance |
| Selected instance from scene. More... | |
| CollisionGroup * | solar_bodies_cg |
| Collision group for solar bodies. More... | |
| ShipType * | ship_type |
| Ship type. More... | |
| PlayerShip * | player_ship |
| Player ship. More... | |
Definition at line 58 of file ObjectManager.h.
|
|
ObjectManager constructor.
Definition at line 71 of file ObjectManager.cpp. |
|
|
Add FFE ships.
Definition at line 50 of file FrontierObjects.cpp. References scene. |
|
||||||||||||||||||||
|
Add simple grid to scene.
Definition at line 281 of file ObjectManager.cpp. References scene. Referenced by addObjects(). |
|
||||||||||||
|
Add preset light(s) to scene.
Definition at line 184 of file ObjectManager.cpp. References scene. Referenced by addObjects(). |
|
|
Initialize objects == scene.
Definition at line 78 of file ObjectManager.cpp. References ACCEL_CONST, active_camera, addGrid(), addLights(), addPrimitives(), camera, camera2, loadLWO(), MAX_PITCH, MAX_ROLL, MAX_SPEED, PITCH_CONST, player_camera, player_ship, ROLL_CONST, root, scene, setActiveCamera(), and solar_bodies_cg. |
|
|
Add primitive objects to scene.
Definition at line 49 of file PrimitiveObjects.cpp. References scene. Referenced by addObjects(). |
|
|
|
|
|
Test ROAM object.
Definition at line 44 of file RoamObjects.cpp. References scene. |
|
|
Definition at line 482 of file ObjectManager.cpp. References camera. |
|
|
Definition at line 313 of file ObjectManager.cpp. References player_ship. |
|
|
|
|
|
Definition at line 319 of file ObjectManager.cpp. References player_camera. |
|
||||||||||||
|
rotate instance.
Definition at line 358 of file ObjectManager.cpp. References instance. |
|
||||||||||||
|
scale instance.
Definition at line 368 of file ObjectManager.cpp. References instance. |
|
||||||||||||
|
translate instance on XZ plane.
Definition at line 332 of file ObjectManager.cpp. References instance. |
|
||||||||||||
|
translate instance on YZ plane.
Definition at line 345 of file ObjectManager.cpp. References instance. |
|
|
LightWave Object scanner and loader Messy - FileScan class currently works differently on different platforms.. Definition at line 51 of file LightwaveObjects.cpp. Referenced by addObjects(). |
|
|
Definition at line 461 of file ObjectManager.cpp. |
|
||||||||||||
|
Mouse buttonpress event.
Definition at line 386 of file ObjectManager.cpp. References instance, player_ship, and root. |
|
|
Definition at line 325 of file ObjectManager.cpp. References active_camera. Referenced by addObjects(). |
|
|
Definition at line 439 of file ObjectManager.cpp. References player_ship, root, and scene. |
|
|
Definition at line 92 of file ObjectManager.h. Referenced by addObjects(), and setActiveCamera(). |
|
|
User controllable camera.
Definition at line 90 of file ObjectManager.h. Referenced by addObjects(), and getCamera(). |
|
|
Another User controllable camera.
Definition at line 91 of file ObjectManager.h. Referenced by addObjects(). |
|
|
Selected instance from scene.
Definition at line 94 of file ObjectManager.h. Referenced by instanceRotate(), instanceScale(), instanceTranslateXZ(), instanceTranslateYZ(), ObjectManager(), and selectInstance(). |
|
|
Player ship camera;.
Definition at line 93 of file ObjectManager.h. Referenced by addObjects(), and getShipCamera(). |
|
|
Player ship.
Definition at line 97 of file ObjectManager.h. Referenced by addObjects(), getPlayerShip(), selectInstance(), and updateObjects(). |
|
|
Definition at line 88 of file ObjectManager.h. Referenced by addObjects(), ObjectManager(), rayCollision(), selectInstance(), and updateObjects(). |
|
|
Container for renderable 3D objects.
Definition at line 89 of file ObjectManager.h. Referenced by addFFE(), addGrid(), addLights(), addObjects(), addPrimitives(), addROAM(), loadLWO(), rayCollision(), and updateObjects(). |
|
|
Ship type.
Definition at line 96 of file ObjectManager.h. |
|
|
Collision group for solar bodies.
Definition at line 95 of file ObjectManager.h. Referenced by addObjects(). |