2013-11-28 08:33:29 +01:00
|
|
|
//////////////////////////////////////////////////
|
|
|
|
//Created by Erik and Linda of the GameLogic team
|
|
|
|
//////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
2013-11-19 18:35:35 +01:00
|
|
|
#ifndef OBJECT_H
|
|
|
|
#define OBJECT_H
|
|
|
|
|
2013-11-27 16:17:47 +01:00
|
|
|
#include "PhysicsAPI.h"
|
|
|
|
#include "DllInterfaces/GFXAPI.h"
|
|
|
|
|
2013-11-21 12:05:39 +01:00
|
|
|
#include "Model/Model.h"
|
|
|
|
#include "Utilities.h"
|
2013-11-27 16:17:47 +01:00
|
|
|
|
2013-11-25 11:03:06 +01:00
|
|
|
|
2013-11-28 09:26:29 +01:00
|
|
|
|
2013-11-19 18:35:35 +01:00
|
|
|
namespace GameLogic
|
|
|
|
{
|
|
|
|
class Object
|
|
|
|
{
|
2013-11-29 09:23:00 +01:00
|
|
|
public:
|
2013-11-26 11:30:49 +01:00
|
|
|
|
|
|
|
enum OBJECT_TYPE
|
|
|
|
{
|
|
|
|
OBJECT_TYPE_PLAYER,
|
|
|
|
OBJECT_TYPE_BOX,
|
|
|
|
};
|
2013-11-29 09:23:00 +01:00
|
|
|
Object(void);
|
|
|
|
virtual ~Object(void);
|
|
|
|
|
2013-11-28 11:23:11 +01:00
|
|
|
void Render();
|
2013-11-19 18:35:35 +01:00
|
|
|
|
2013-11-26 11:30:49 +01:00
|
|
|
OBJECT_TYPE GetType();
|
|
|
|
|
2013-11-19 18:35:35 +01:00
|
|
|
private:
|
2013-11-26 11:30:49 +01:00
|
|
|
OBJECT_TYPE type;
|
2013-11-19 18:35:35 +01:00
|
|
|
|
|
|
|
protected:
|
2013-11-20 12:23:45 +01:00
|
|
|
//either a model pointer or an ID to an arraypos filled with models that are to be rendered
|
2013-11-19 18:35:35 +01:00
|
|
|
//rigidBody
|
|
|
|
|
2013-11-28 09:26:29 +01:00
|
|
|
Oyster::Physics::ICustomBody *rigidBody;
|
|
|
|
Oyster::Graphics::Model::Model *model;
|
2013-11-28 08:41:20 +01:00
|
|
|
|
2013-11-19 18:35:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|