object and worldObject

This commit is contained in:
Erik Persson 2013-11-19 18:35:35 +01:00
parent ea0f3f05b4
commit 27e5b07ef6
7 changed files with 84 additions and 5 deletions

View File

@ -14,11 +14,14 @@ namespace GameLogic
~Game(void);
void Init();
void StartGame();
void Update();
private:
Level *level;
Player *player;
};
}

13
Code/GameLogic/Object.cpp Normal file
View File

@ -0,0 +1,13 @@
#include "Object.h"
using namespace GameLogic;
Object::Object(void)
{
}
Object::~Object(void)
{
}

24
Code/GameLogic/Object.h Normal file
View File

@ -0,0 +1,24 @@
#ifndef OBJECT_H
#define OBJECT_H
namespace GameLogic
{
class Object
{
public:
Object(void);
~Object(void);
private:
protected:
//model
//rigidBody
};
}
#endif

View File

@ -1,18 +1,26 @@
#ifndef PLAYER_H
#define PLAYER_H
#include "Object.h"
namespace GameLogic
{
class Player
class Player : public Object
{
public:
Player(void);
~Player(void);
private:
void Update();
void Move();
void Shoot();
private:
//Life
//weapon
};
}

View File

@ -0,0 +1,11 @@
#include "WorldObject.h"
WorldObject::WorldObject(void)
{
}
WorldObject::~WorldObject(void)
{
}

View File

@ -0,0 +1,22 @@
#ifndef WORLDOBJECT_H
#define WORLDOBJECT_H
#include "Object.h"
namespace GameLogic
{
class WorldObject : public Object
{
public:
WorldObject(void);
~WorldObject(void);
private:
};
}
#endif

View File

@ -149,7 +149,6 @@ namespace Oyster
}
if(FAILED(Oyster::Core::Device->CreatePixelShader(Shader->GetBufferPointer(),Shader->GetBufferSize(),NULL,&pixel)))
{
Error->Release();
Shader->Release();
return false;
}
@ -205,7 +204,6 @@ namespace Oyster
}
if(FAILED(Oyster::Core::Device->CreateVertexShader(Shader->GetBufferPointer(),Shader->GetBufferSize(),NULL,&vertex)))
{
Error->Release();
Shader->Release();
return false;
}