summaryrefslogtreecommitdiff
path: root/inc/list.hpp
blob: aff57a227a1d8fb2e2185259c94bdd41570ad51b (plain)
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
28
29
30
31
32
#ifndef list_h
#define list_h

#include <SDL2/SDL.h>
#include <list>
#include <vector>

#include "functions.hpp"
#include "creature.hpp"
#include "resource.hpp"
#include "sdl/window.hpp"
#include "constants.hpp"
#include "rectangle.hpp"
#include "quadtree.hpp"

class List
{
	public:
		List();
		void Behavior();
		void Place();
        void Remove();
        std::list<Entity*> getNear(Creature C);
        std::list<Resource> R;
        std::list<Creature> C;

        Quadtree tree;
        std::vector<GraphicsData> drawQuadTree();
        Rectangle R1;
};

#endif