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

Object Class Reference

#include <Object.h>

Inheritance diagram for Object:

[legend]
Collaboration diagram for Object:
[legend]
List of all members.

Public Methods

 Object (string filename="")
virtual ~Object ()
virtual void draw ()
virtual void setInitialTranslate (Vector3 translate)
Vector3 getInitialTranslate ()
double getInitialTranslateX ()
double getInitialTranslateZ ()
void translate (Vector3 translate)
Vector3 getTranslate ()
void translateY (double y)
void translateZ (double z)
double getTranslateX ()
double getAllTranslateX ()
double getTranslateY ()
double getTranslateZ ()
double getAllTranslateZ ()
Vector3 getAllTranslate ()
void rotate (Vector3 rotate)
void rotateX (double x)
void rotateY (double y)
void rotateZ (double z)
double getRotateX ()
double getRotateY ()
double getRotateZ ()
void scale (Vector3 scale)
long getID ()
void setName (string s)
string getName ()
void loadObject (string filename)
void loadTexture (string filename)
void loadSound (string filename, Vector3 position, Vector3 velocity)
void loadSound (string filename)
void changeSize (int size)
virtual void setScaleSize (int i)
virtual void nextTexture ()
double getCollisionRadius ()
vector< string > getActionList ()
void addAction (string t)

Static Public Methods

vector< Object * > getAllObjects ()
void addObject (Object *t)
void removeObject (long id)

Protected Methods

Vector3 findClosestPositionX (Vector3 position)
void createDisplayList ()

Protected Attributes

string _filename
FileLoader_fileLoader
GLuint _textureList [100]
int _numTextures
int _currentTexture
bool _hasGLList
GLuint _glList [1]
ALuint _soundList [100]
int _numSounds
OggStream_oggStream
vector< Vector3_faces
vector< Vector3_normals
vector< Vector2_textures
Vector3 _initialTranslate
Vector3 _initialRotate
Vector3 _initialScale
Vector3 _currentTranslate
Vector3 _currentRotate
Vector3 _currentScale
vector< string > _actionList
double _collisionRadius
int _scaleSize
long _id
string _name

Static Protected Attributes

Texture _texture
Audio _audio
vector< Object * > _allObjects
long _currentID = 1

Detailed Description

Base class for all entities

author: Line72: dillavou@uab.edu


Constructor & Destructor Documentation

Object::Object string    filename = ""
 

Object::~Object   [virtual]
 


Member Function Documentation

void Object::addAction string    t [inline]
 

Add an action item

void Object::addObject Object *    t [inline, static]
 

void Object::changeSize int    size
 

Function to actually change the coordinates instead of doing a scale. !You should recalc the normals after calling this

void Object::createDisplayList   [protected]
 

void Object::draw   [virtual]
 

Reimplemented in Actor, Arm, BackgroundMusic, Ball, Baseball, Basketball, Board, Bone, BuriedObject, Coin, DirtPath, Football, Hud, Human, Leg, LoadScreen, MainMenu, Museum, MuseumInside, Particle, River, Shelf, Skateboard, SkyBox, Soccerball, Table, Terrain, Tree, WaterFall, and World.

Vector3 Object::findClosestPositionX Vector3    position [protected]
 

vector< string > Object::getActionList   [inline]
 

returns all the objects actions

vector< Object * > Object::getAllObjects   [inline, static]
 

Vector3 Object::getAllTranslate   [inline]
 

double Object::getAllTranslateX   [inline]
 

double Object::getAllTranslateZ   [inline]
 

double Object::getCollisionRadius   [inline]
 

long Object::getID   [inline]
 

Vector3 Object::getInitialTranslate   [inline]
 

double Object::getInitialTranslateX   [inline]
 

double Object::getInitialTranslateZ   [inline]
 

string Object::getName   [inline]
 

double Object::getRotateX   [inline]
 

double Object::getRotateY   [inline]
 

double Object::getRotateZ   [inline]
 

Vector3 Object::getTranslate   [inline]
 

double Object::getTranslateX   [inline]
 

double Object::getTranslateY   [inline]
 

double Object::getTranslateZ   [inline]
 

void Object::loadObject string    filename
 

void Object::loadSound string    filename
 

void Object::loadSound string    filename,
Vector3    position,
Vector3    velocity
 

void Object::loadTexture string    filename
 

virtual void Object::nextTexture   [inline, virtual]
 

void Object::removeObject long    id [static]
 

void Object::rotate Vector3    rotate [inline]
 

void Object::rotateX double    x [inline]
 

void Object::rotateY double    y [inline]
 

void Object::rotateZ double    z [inline]
 

void Object::scale Vector3    scale [inline]
 

virtual void Object::setInitialTranslate Vector3    translate [inline, virtual]
 

Reimplemented in MuseumInside.

void Object::setName string    s [inline]
 

virtual void Object::setScaleSize int    i [inline, virtual]
 

void Object::translate Vector3    translate [inline]
 

void Object::translateY double    y [inline]
 

void Object::translateZ double    z [inline]
 


Member Data Documentation

vector< string > Object::_actionList [protected]
 

vector< Object * > Object::_allObjects [static, protected]
 

Audio Object::_audio [static, protected]
 

double Object::_collisionRadius [protected]
 

long Object::_currentID = 1 [static, protected]
 

Vector3 Object::_currentRotate [protected]
 

Vector3 Object::_currentScale [protected]
 

int Object::_currentTexture [protected]
 

Vector3 Object::_currentTranslate [protected]
 

vector< Vector3 > Object::_faces [protected]
 

FileLoader* Object::_fileLoader [protected]
 

string Object::_filename [protected]
 

GLuint Object::_glList[1] [protected]
 

bool Object::_hasGLList [protected]
 

long Object::_id [protected]
 

Vector3 Object::_initialRotate [protected]
 

Vector3 Object::_initialScale [protected]
 

Vector3 Object::_initialTranslate [protected]
 

string Object::_name [protected]
 

vector< Vector3 > Object::_normals [protected]
 

int Object::_numSounds [protected]
 

int Object::_numTextures [protected]
 

OggStream* Object::_oggStream [protected]
 

int Object::_scaleSize [protected]
 

ALuint Object::_soundList[100] [protected]
 

Texture Object::_texture [static, protected]
 

GLuint Object::_textureList[100] [protected]
 

vector< Vector2 > Object::_textures [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Apr 21 11:11:12 2004 for naturecalls by doxygen1.2.18