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 CHARACTER_H
#define CHARACTER_H
#include <curses.h>
#include <string.h>
#include <iostream>
#include <array>
#include <fstream>
#include <vector>
#include <stdlib.h>
#include <cstdlib>
#include <time.h>
#include <ctime>
#define SPACEBAR 32
using namespace std;
class Character {
private:
string name;
string species;
string classes;
int maxHp = 0;
int currentHp = 0;
int pAtk = 0;
int mAtk = 0;
int str = 0;
int dex = 0;
int con = 0;
int intel = 0;
int luck = 0;
int charisma = 0;
int lvl = 1;
float exp = 0;
int statPoints = 1;
int money = 0;
vector<string> skills = {"slash", "knife throw", "block", "kick", "fireball", "blizzard", "rock wall", "self heal"};
vector<string> learnedSkills = {};
vector<string> learnableSkills = {};
vector<string> passives = {"tough skin", "mana recovery"};
vector<string> learnedPassives = {};
vector<string> learnablePassives = {};
int maxMana = 0;
int currentMana = -1;
int cooldownTurns1 = 0;
int cooldownTurns2 = 0;
int cooldownTurns3 = 0;
int cooldownTurns4 = 0;
public:
Character(int newGame);
void save();
void getSpecies();
void getClass();
void load();
void update();
void getName(string receiveN);
string giveName();
string giveSpecies();
string giveClass();
array<int, 13> showInfo();
void showStats();
void levelup();
void updateExp(float expGiven, int enemyLvl);
float showExp();
void usePoints();
void addMoney(int acquiredMoney);
void removeMoney(int lostMoney);
int takeDamage(int damage);
void gameover();
void showSkills();
void showLearnedS();
void showLearnableS();
void showPassives();
vector<string> getSkills();
vector<string> getPassives();
array<int, 2> slash();
array<int, 2> knifeThrow();
array<int, 2> block();
array<int, 2> kick(int hit);
array<int, 2> fireball();
array<int, 2> blizzard();
array<int, 2> rockWall();
array<int, 2> selfHeal();
};
void mainC();
#include "mainCombat.cpp"
#endif