Initialize files from GitLab repository

This commit is contained in:
2025-11-04 20:22:10 -07:00
commit 4050e30ae8
30 changed files with 3328 additions and 0 deletions

58
lib/items/Potion.cpp Normal file
View File

@@ -0,0 +1,58 @@
#include "../../include/items/Potion.h"
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
// This constructor just initializes the User to null.
Potion::Potion()
{
name = "No Potion Stocked";
heal_amount = 0;
value = 0;
}
Potion::Potion(string potion_name, int amount_provided, int cost)
{
name = potion_name;
heal_amount = amount_provided;
value = cost;
}
//SETTER FUNCTIONS
void Potion::setPotionName(string potion_name)
{
name = potion_name;
}
void Potion::setPotionValue(int cost)
{
value = cost;
}
// GETTER FUNCTIONS
string Potion::getPotionName()
{
return name;
}
int Potion::getPotionValue()
{
return value;
}
int Potion::getPotionAmount()
{
return heal_amount;
}