-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeapon.h
40 lines (33 loc) · 1.06 KB
/
Weapon.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
#ifndef ENGINE_HERENCIA_WEAPON_H
#define ENGINE_HERENCIA_WEAPON_H
#include "GameObject.h"
class Weapon : public GameObject {
private:
int damage; //Daño del arma
int cylinderSize; //Tamaño del cilindro
int ammunition; //Munición
int initialAmmunition; //Munición inicial
float cadence; //Cadencia
public:
//Constructores
Weapon();
Weapon(int damage, int cylinderSize, int ammunition, int initialAmmunition, float cadence);
Weapon(const Vector3D& position, const Color& color, const Vector3D& speed, const Vector3D& orientation,
int damage, int cylinderSize, int ammunition, int initialAmmunition, float cadence);
//Getters
int getDamage() const;
int getCylinderSize() const;
int getAmmunition() const;
int getInitialAmmunition() const;
float getCadence() const;
//Setters
void setDamage(const int& d);
void setCylinderSize(const int cS);
void setAmmunition(const int a);
void setInitialAmmunition(const int& iA);
void setCadence(const float& c);
//Otros métodos
void render() const;
void update();
};
#endif //ENGINE_HERENCIA_WEAPON_H