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
#pragma once
#include <string>
using namespace std;
class Monster
{
public:
Monster(string name, char tile, int attack, int health, int defense, int experience);
//set p
void setPosition(int x, int y);
//get
void getPosition(int &x, int &y);
string getName() { return _name; }
char getTile() { return _tile; }
//fight
int attack();
int dmgTaken(int attack);
private:
//name
string _name;
//monster tile
char _tile;
//monster stats
int _attack;
int _level;
int _health;
int _defense;
int _expPts;
//POSITION
int _x;
int _y;
};