Threading for renderer, textures, entities, game state
This commit is contained in:
25
include/object/entity.hpp
Normal file
25
include/object/entity.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <utils.hpp>
|
||||
|
||||
namespace Game::Renderer {
|
||||
class Texture;
|
||||
}
|
||||
|
||||
namespace Game::Object {
|
||||
class Entity {
|
||||
public:
|
||||
Entity(std::string& name, Game::Renderer::Texture* tex) : mName(name), mTex(tex) {}
|
||||
// I will define the copy and move constructors later - just deleted for now
|
||||
DISABLE_COPY_AND_MOVE(Entity);
|
||||
~Entity();
|
||||
|
||||
void start();
|
||||
void update();
|
||||
protected:
|
||||
std::string mName;
|
||||
Game::Renderer::Texture* mTex;
|
||||
private:
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user