-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWeapon.h
More file actions
42 lines (26 loc) · 657 Bytes
/
Weapon.h
File metadata and controls
42 lines (26 loc) · 657 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
40
41
42
#ifndef Weapon_H_INCLUDED
#define Weapon_H_INCLUDED
#include "Item.h"
class Weapon : public Item
{
public:
int damage;
int range;
int speed;
bool canHit;
int onHitTime;
int hitTimer;
Weapon();
~Weapon();
// bool OnLoad(char* File, int Width, int Height, int MaxFrames);
bool OnLoad(char* File, int Width, int Height);
void OnLoop(float playerX, float playerY);
void OnRender(SDL_Surface* Surf_Display);
void OnCleanup();
void OnAnimate();
bool OnCollision(CEntity* Entity);
void DoDamage();
void SetOwner(CEntity* Entity);
void OnDrop();
};
#endif // Weapon_H_INCLUDED