45 lines
778 B
C++
45 lines
778 B
C++
//////////////////////////////////////////////////
|
|
//Created by Erik and Linda of the GameLogic team
|
|
//////////////////////////////////////////////////
|
|
|
|
|
|
#ifndef OBJECT_H
|
|
#define OBJECT_H
|
|
|
|
#include "GameLogicStates.h"
|
|
#include <PhysicsAPI.h>
|
|
|
|
namespace GameLogic
|
|
{
|
|
class Game;
|
|
|
|
class Object
|
|
{
|
|
public:
|
|
Object();
|
|
Object(void* collisionFunc, OBJECT_TYPE type);
|
|
~Object(void);
|
|
|
|
OBJECT_TYPE GetType() const;
|
|
int GetID() const;
|
|
Oyster::Physics::ICustomBody* GetRigidBody();
|
|
|
|
void BeginFrame();
|
|
void EndFrame();
|
|
|
|
private:
|
|
OBJECT_TYPE type;
|
|
int objectID;
|
|
|
|
protected:
|
|
Oyster::Physics::ICustomBody *rigidBody;
|
|
Oyster::Physics::ICustomBody::State setState;
|
|
Oyster::Physics::ICustomBody::State getState;
|
|
|
|
static const Game* gameInstance;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif |