asdf
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
class EntityBase {
|
||||
public:
|
||||
EntityBase();
|
||||
|
||||
std::string texture;
|
||||
|
||||
virtual ~EntityBase();
|
||||
};
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "entitymanager.h"
|
||||
|
||||
EntityManager::EntityManager() {
|
||||
EntityManager::EntityManager(ResourceManger* resourceManger)
|
||||
: resourceManger(resourceManger) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -4,12 +4,16 @@
|
||||
#include <map>
|
||||
|
||||
#include "entity.h"
|
||||
#include "../resourcemanager/resourcemanager.h"
|
||||
|
||||
class EntityManager {
|
||||
public:
|
||||
EntityManager();
|
||||
EntityManager(ResourceManger* resourceManager);
|
||||
|
||||
|
||||
|
||||
virtual ~EntityManager();
|
||||
private:
|
||||
std::map<std::string, Entity> m_activeEntities;
|
||||
std::map<unsigned short int, Entity> m_activeEntities;
|
||||
ResourceManger* resourceManger;
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@ Game::Game()
|
||||
: input(&renderer)
|
||||
, resourceManager(&renderer)
|
||||
, textureManager(resourceManager.textureManager)
|
||||
, entityManager() {
|
||||
, entityManager(&resourceManager) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user