-
Notifications
You must be signed in to change notification settings - Fork 0
/
Projectile.h
34 lines (31 loc) · 897 Bytes
/
Projectile.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
#pragma once
class Projectile
{
private:
bool live;
int monsterID; //monster that it's locked to. currently only works if all waves have 10 monsters
float xCenter;
float yCenter;
float damage;
float slow;
float splash;
float speed;
public:
Projectile();
float CollideMonster(int mx, int my);
void DrawProjectile();
void UpdatePosition(int mx, int my);
bool GetLive() {return live;}
int GetMonsterID() {return monsterID;}
float GetXCenter() {return xCenter;}
float GetYCenter() {return yCenter;}
float GetDamage() {return damage;}
float GetSlow() {return slow;}
float GetSplash() {return splash;}
float GetSpeed() {return speed;}
void SetLive(bool live) {Projectile::live = live;}
void SetMonsterID(int monstID) {monsterID = monstID;}
void SetXCenter(float x) {xCenter = x;}
void SetYCenter(float y) {yCenter = y;}
void SetSlow(float slow) {Projectile::slow = slow;}
};