blob: ad6c78807c64fa4bd9495162ab8f9e7c21a5f0d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef WORLD_H
#define WORLD_H
class World;
#include <list>
#include "renderer.h"
#include "entity.h"
#include <cstdio>
class World {
public:
World() {};
~World() {};
void tick();
void input(int key, int action);
void render(Texture* buffer);
void addEntity(std::shared_ptr<Entity> e);
std::list<Collidable*> bodies;
std::shared_ptr<Entity> player;
private:
std::list<std::shared_ptr<Entity>> entities;
};
#endif
|