/*
* Entity.h
* Jonathan Boldiga
* 09/03/03
*
* Description: The Entity class is derived from MD2Model and
* MD3Model classes and provides the functionality
* of an entity in the game world.
*
*/
#ifndef __ENTITY_H
#define __ENTITY_H
#ifndef __ENTITY_H
#define __ENTITY_H
#include
#include
#include
#include "MD2.h"
#include "Object.h"
#include "Camera.h"
#include "AudioSystem.h"
#include "Terrain.h"
class Entity : public MD2Model{
protected:
void onAnimate(float deltaTime);
void onDraw(Camera* camera);
void onCollision(Object* collisionObject);
void onPrepare();
public:
float direction; //angle the entity is facing (in radians)
Audio* entitySound; //the sound the entity makes
//currently only supports one sound
//per entity
Entity();
~Entity();
int stateStart, stateEnd; //state keyframe start/end
float deltaT;
float animationSpeed;
void loadAudio(AudioSystem* audioSystem, char* filename, bool is3DSound);
};
#endif