-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathentity.h
66 lines (50 loc) · 1.02 KB
/
entity.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef STDLIB
#define STDLIB
#include <stdlib.h>
#endif
#ifndef WORLD_H
#define WORLD_H
#include "world.h"
#endif
#ifndef SFML
#define SFML
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#endif
#ifndef BOTLIST_H
#define BOTLIST_H
#include "botlist.h"
#endif
#ifndef ENTLIST_H
#define ENTLIST_H
#include "entlist.h"
#endif
#ifndef BOT_H
#define BOT_H
#include "bot.h"
#endif
#ifndef ENTITY_H
#define ENTITY_H
#include "entity.h"
#endif
#ifndef IOSTREAM
#define IOSTREAM
#include <iostream>
#endif
//Îáúåêò ñóùíîñòü, íà äåëå ÿâëÿåòñÿ åäîé äëÿ áîòà
class Entity : public sf::Drawable
{
private:
public:
//Êîíñòðóêòîðû
Entity(int posx, int posy, int size); //âûñòàâëÿåò ïîçèöèè è ðàçìåð äëÿ îòðèñîâêè
Entity(const Entity&) = delete;
Entity& operator=(const Entity&) = delete;
//Ôóíêöèè
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const override;
//Äàííûå
int x; //ïîçèöèÿ ïî x
int y; //ïîçèöèÿ ïî y
sf::RectangleShape shape; //ïðÿìîóãîëüíèê äëÿ îòðèñîâêè
};