forked from ComputerGeek01/Random
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuilding.hpp
More file actions
39 lines (24 loc) · 760 Bytes
/
Building.hpp
File metadata and controls
39 lines (24 loc) · 760 Bytes
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
#include "Units.hpp"
#ifndef __BUILDING__BUILDING
#define __BUILDING__BUILDING
struct BUILDING: BASE
{
private:
public:
BUILDING(sf::Image* img, float X, float Y)
{
Img = img;
Type = 3;
Pos.x = X;
Pos.y = Y;
Right = Img->GetWidth();
Bottom = Img->GetHeight();
RB.x = Right;
RB.y = Bottom;
Sprite.SetImage(*Img);
//std::cout << "X: " << Pos.x << " Y: " << Pos.y << " Right: " << Right << " Bottom: " << Bottom << "\n";
Sprite.SetPosition(Pos);
}
//bool Hit(sf::Vector2f Pos);
};
#endif