Initialize files from GitLab repository
This commit is contained in:
34
include/items/Armor.h
Normal file
34
include/items/Armor.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef ARMOR_H
|
||||
#define ARMOR_H
|
||||
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
|
||||
|
||||
class Armor
|
||||
{
|
||||
// data members
|
||||
private:
|
||||
string name;
|
||||
int health;
|
||||
int hits_remaining;
|
||||
int upgrades_remaining;
|
||||
int value;
|
||||
|
||||
public:
|
||||
// Constructors of Armor class
|
||||
Armor();
|
||||
Armor(string armor_name, int health_added, int cost);
|
||||
|
||||
// SETTER FUNCIONS
|
||||
|
||||
// GETTER FUNCTIONS
|
||||
string getArmorName();
|
||||
int getArmorHealth();
|
||||
int getArmorHitsRemaining();
|
||||
int getArmorUpgradesRemaining();
|
||||
int getArmorValue();
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
32
include/items/Potion.h
Normal file
32
include/items/Potion.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef POTION_H
|
||||
#define POTION_H
|
||||
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
|
||||
class Potion
|
||||
{
|
||||
private:
|
||||
string name;
|
||||
int heal_amount;
|
||||
int value;
|
||||
int amount;
|
||||
int potions_amount;
|
||||
|
||||
public:
|
||||
Potion();
|
||||
Potion(string potion_name, int amount_provided, int cost);
|
||||
|
||||
// SETTER FUNCTIONS
|
||||
void setPotionName(string name);
|
||||
void setPotionValue(int cost);
|
||||
void addPotion();
|
||||
void subtractPotion();
|
||||
|
||||
// GETTER FUNCTIONS
|
||||
string getPotionName();
|
||||
int getPotionValue();
|
||||
int getPotionAmount();
|
||||
};
|
||||
|
||||
#endif
|
||||
43
include/items/Weapon.h
Normal file
43
include/items/Weapon.h
Normal file
@@ -0,0 +1,43 @@
|
||||
#ifndef WEAPON_H
|
||||
#define WEAPON_H
|
||||
|
||||
#include<iostream>
|
||||
|
||||
using namespace std;
|
||||
class Weapon
|
||||
{
|
||||
// data members
|
||||
private:
|
||||
string name;
|
||||
int base_damage;
|
||||
int base_heavy_damage;
|
||||
int max_damage;
|
||||
int max_heavy_damage;
|
||||
int hits_remaining;
|
||||
int upgrades_remaining;
|
||||
int value;
|
||||
|
||||
public:
|
||||
// Constructors of Weapon class
|
||||
Weapon();
|
||||
Weapon(string weapon_name, int base, int max, int cost);
|
||||
|
||||
// SETTER FUNCIONS
|
||||
void setWeaponValue(int cost);
|
||||
void setUpgradesRemaining(int upgrades_remaining);
|
||||
void setWeaponBaseHeavyDamage(int level, int base, int random);
|
||||
void setWeaponMaxHeavyDamage(int level, int base, int random);
|
||||
|
||||
|
||||
// GETTER FUNCTIONS
|
||||
string getWeaponName();
|
||||
int getWeaponValue();
|
||||
int getWeaponBaseDamage();
|
||||
int getWeaponBaseHeavyDamage();
|
||||
int getWeaponMaxDamage();
|
||||
int getWeaponMaxHeavyDamage();
|
||||
int getWeaponHitsRemaining();
|
||||
int getWeaponUpgradesRemaining();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user