Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#ifndef SEED_RPG_WEAPON_H
#define SEED_RPG_WEAPON_H
#include <string>
#include "Item.h"
using namespace std;
class Weapon : public Item {
private:
/* attributes of Weapon class */
int weaponDamage;
int weaponLevel;
int weaponExperience;
float weaponCritChance;
int weaponAttackMoves;
float weaponHitChance;
public:
/* Weapon class constructor */
Weapon(int id);
Weapon(Item item);
/* setter functions of Weapon class */
void setWeaponDamage(int damage);
void setWeaponLevel(int level);
void setWeaponExperience(int experience);
void setWeaponCritChance(float critChance);
void setWeaponAttackMoves(int attackMoves);
void setWeaponHitChance(float hitChance);
/* getter functions of Weapon class */
int getWeaponDamage();
int getWeaponLevel();
int getWeaponExperience();
float getWeaponCritChance();
int getWeaponAttackMoves();
int getWeaponHitChance();
};
#endif //SEED_RPG_WEAPON_H