-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbloc.h
53 lines (43 loc) · 989 Bytes
/
bloc.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
#ifndef BLOC_H
#define BLOC_H
#include <SFML/Graphics.hpp>
#include "define.h"
using namespace sf;
using namespace std;
class Sprites;
class HUD;
class Game;
class Ennemy;
class Bloc
{
public:
Bloc(RenderWindow &app, string path, float posX, float posY);
~Bloc();
virtual void Do(vector<Ennemy*> &v, float gameTime)=0;
void draw();
Sprites& getSprite();
int GetVie();
int GetSellPrice();
void SetSellPrice(int p);
void SetVie(int);
string GetType();
int getStrenght();
void setStrenght(int s);
int getRayon();
void setRayon(int r);
void setSprite(string path);
void setColor(Color c);
Color getColor();
bool hasHit(Vector2f const & point);
bool manageEvent(Event event, Game* &game, HUD* &hud);
protected:
Sprites *img;
RenderWindow &app;
int Vie;
string Type;
int sellPrice;
int strenght;
int rayon;
Color rayonColor;
};
#endif