Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::SpaceGame::ObjectManager Class Reference

ObjectManager. More...

#include <ObjectManager.h>

Collaboration diagram for Teddy::SpaceGame::ObjectManager:

Collaboration graph
[legend]
List of all members.

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 ()
PlayerShipgetPlayerShip ()
ShipCameragetShipCamera ()
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

Rootroot
Scene * scene
 Container for renderable 3D objects. More...

Camera * camera
 User controllable camera. More...

Camera * camera2
 Another User controllable camera. More...

Camera * active_camera
ShipCameraplayer_camera
 Player ship camera;. More...

ModelInstance * instance
 Selected instance from scene. More...

CollisionGroupsolar_bodies_cg
 Collision group for solar bodies. More...

ShipTypeship_type
 Ship type. More...

PlayerShipplayer_ship
 Player ship. More...


Detailed Description

ObjectManager.

Todo:
docs

Definition at line 58 of file ObjectManager.h.


Constructor & Destructor Documentation

Teddy::SpaceGame::ObjectManager::ObjectManager Root   root
 

ObjectManager constructor.

Definition at line 71 of file ObjectManager.cpp.

References instance, and root.


Member Function Documentation

void Teddy::SpaceGame::ObjectManager::addFFE  
 

Add FFE ships.

Definition at line 50 of file FrontierObjects.cpp.

References scene.

void Teddy::SpaceGame::ObjectManager::addGrid int    xcount,
int    zcount,
int    xspace,
int    zspace
 

Add simple grid to scene.

Definition at line 281 of file ObjectManager.cpp.

References scene.

Referenced by addObjects().

void Teddy::SpaceGame::ObjectManager::addLights int    num = 1,
const bool    animate = false
 

Add preset light(s) to scene.

Todo:
Fix this UGLY code....!!

Definition at line 184 of file ObjectManager.cpp.

References scene.

Referenced by addObjects().

void Teddy::SpaceGame::ObjectManager::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.

void Teddy::SpaceGame::ObjectManager::addPrimitives  
 

Add primitive objects to scene.

Definition at line 49 of file PrimitiveObjects.cpp.

References scene.

Referenced by addObjects().

void Teddy::SpaceGame::ObjectManager::addRigidBodies  
 

void Teddy::SpaceGame::ObjectManager::addROAM  
 

Test ROAM object.

Definition at line 44 of file RoamObjects.cpp.

References scene.

Camera * Teddy::SpaceGame::ObjectManager::getCamera  
 

Definition at line 482 of file ObjectManager.cpp.

References camera.

PlayerShip * Teddy::SpaceGame::ObjectManager::getPlayerShip  
 

Todo:
doc

Definition at line 313 of file ObjectManager.cpp.

References player_ship.

Scene* Teddy::SpaceGame::ObjectManager::getScene  
 

ShipCamera * Teddy::SpaceGame::ObjectManager::getShipCamera  
 

Todo:
doc

Definition at line 319 of file ObjectManager.cpp.

References player_camera.

void Teddy::SpaceGame::ObjectManager::instanceRotate const int    x_delta,
const int    y_delta
 

rotate instance.

Definition at line 358 of file ObjectManager.cpp.

References instance.

void Teddy::SpaceGame::ObjectManager::instanceScale const int    x_delta,
const int    y_delta
 

scale instance.

Definition at line 368 of file ObjectManager.cpp.

References instance.

void Teddy::SpaceGame::ObjectManager::instanceTranslateXZ const int    x_delta,
const int    y_delta
 

translate instance on XZ plane.

Definition at line 332 of file ObjectManager.cpp.

References instance.

void Teddy::SpaceGame::ObjectManager::instanceTranslateYZ const int    x_delta,
const int    y_delta
 

translate instance on YZ plane.

Definition at line 345 of file ObjectManager.cpp.

References instance.

void Teddy::SpaceGame::ObjectManager::loadLWO  
 

LightWave Object scanner and loader Messy - FileScan class currently works differently on different platforms..

Definition at line 51 of file LightwaveObjects.cpp.

References scene, and SPACE.

Referenced by addObjects().

void Teddy::SpaceGame::ObjectManager::rayCollision ModelInstance *    source
 

Definition at line 461 of file ObjectManager.cpp.

References root, and scene.

void Teddy::SpaceGame::ObjectManager::selectInstance const int    x,
const int    y
 

Mouse buttonpress event.

Definition at line 386 of file ObjectManager.cpp.

References instance, player_ship, and root.

void Teddy::SpaceGame::ObjectManager::setActiveCamera Camera *    c
 

Todo:
doc

Definition at line 325 of file ObjectManager.cpp.

References active_camera.

Referenced by addObjects().

void Teddy::SpaceGame::ObjectManager::updateObjects  
 

Todo:
doc

Definition at line 439 of file ObjectManager.cpp.

References player_ship, root, and scene.


Member Data Documentation

Camera* Teddy::SpaceGame::ObjectManager::active_camera [protected]
 

Definition at line 92 of file ObjectManager.h.

Referenced by addObjects(), and setActiveCamera().

Camera* Teddy::SpaceGame::ObjectManager::camera [protected]
 

User controllable camera.

Definition at line 90 of file ObjectManager.h.

Referenced by addObjects(), and getCamera().

Camera* Teddy::SpaceGame::ObjectManager::camera2 [protected]
 

Another User controllable camera.

Definition at line 91 of file ObjectManager.h.

Referenced by addObjects().

ModelInstance* Teddy::SpaceGame::ObjectManager::instance [protected]
 

Selected instance from scene.

Definition at line 94 of file ObjectManager.h.

Referenced by instanceRotate(), instanceScale(), instanceTranslateXZ(), instanceTranslateYZ(), ObjectManager(), and selectInstance().

ShipCamera* Teddy::SpaceGame::ObjectManager::player_camera [protected]
 

Player ship camera;.

Definition at line 93 of file ObjectManager.h.

Referenced by addObjects(), and getShipCamera().

PlayerShip* Teddy::SpaceGame::ObjectManager::player_ship [protected]
 

Player ship.

Definition at line 97 of file ObjectManager.h.

Referenced by addObjects(), getPlayerShip(), selectInstance(), and updateObjects().

Root* Teddy::SpaceGame::ObjectManager::root [protected]
 

Definition at line 88 of file ObjectManager.h.

Referenced by addObjects(), ObjectManager(), rayCollision(), selectInstance(), and updateObjects().

Scene* Teddy::SpaceGame::ObjectManager::scene [protected]
 

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().

ShipType* Teddy::SpaceGame::ObjectManager::ship_type [protected]
 

Ship type.

Definition at line 96 of file ObjectManager.h.

CollisionGroup* Teddy::SpaceGame::ObjectManager::solar_bodies_cg [protected]
 

Collision group for solar bodies.

Definition at line 95 of file ObjectManager.h.

Referenced by addObjects().


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