#include <Object.h>
Inheritance diagram for Object:
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 |
author: Line72: dillavou@uab.edu
|
|
|
|
|
Add an action item |
|
|
|
Function to actually change the coordinates instead of doing a scale. !You should recalc the normals after calling this |
|
|
|
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. |
|
|
|
returns all the objects actions |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in MuseumInside. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|