Permalink
Cannot retrieve contributors at this time
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?
SpaceAdventureRPG/Consumable.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34 lines (28 sloc)
822 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SEED_RPG_CONSUMABLE_H | |
#define SEED_RPG_CONSUMABLE_H | |
#include <string> | |
#include "Item.h" | |
using namespace std; | |
class Consumable : public Item { | |
private: | |
/* attributes of Consumable class */ | |
int healthRegen; | |
int shieldRegen; | |
int healthBoost; | |
int shieldBoost; | |
public: | |
/* Consumable class constructor */ | |
Consumable(int id); | |
Consumable(Item item); | |
/* setter functions of Consumable class */ | |
void setHealthRegen(int healthRegen); | |
void setShieldRegen(int shieldRegen); | |
void setHealthBoost(int healthBoost); | |
void setShieldBoost(int shieldBoost); | |
/* getter functions of Consumable class */ | |
int getHealthRegen(); | |
int getShieldRegen(); | |
int getHealthBoost(); | |
int getShieldBoost(); | |
}; | |
#endif //SEED_RPG_CONSUMABLE_H |