Skip to content
Permalink
7bb8cb911e
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
28 lines (25 sloc) 603 Bytes
#include <iostream>
//#include "cNames.cpp"
#include <string>
#include <time.h>
using namespace std;
/* Creates a class for characters in the game. */
class Character
{
/* public attributes */
public:
static int numCharacters;
string name;
int dmg, def, hp, maxHp, stm, gold, xCo, yCo;
Character();
void sayStats();
int Stamina(int val);
int changeDmg(int val);
int changeDef(int val);
int changeGold(int val);
int health(int val);
int healthMax(int val);
int movement(int pos, int move);
void nextTurn();
int direction(int max);
};