-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCharacter.h
More file actions
40 lines (31 loc) · 1.07 KB
/
Character.h
File metadata and controls
40 lines (31 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/****************************************************************************************************
* * Program name: CS162 Project3
* * Author: Taekyoung Kim
* * Date: 02/05/2019
* * Description: This is Character.h file for CS162 Project3
* * This project demonstrates a fantasy combat game.
* * There are 5 characters that have different ability and power.
* * The real game is done with a dice.
******************************************************************************************************/
#ifndef NEW_PEOJECT3_CHARACTER_H
#define NEW_PEOJECT3_CHARACTER_H
//#include <string>
#include <iostream>
class Character {
protected:
std::string name;
int strength;
int armor;
public:
Character();
virtual ~Character();
Character(std::string n, int s, int a);
virtual std::string getName() const;
virtual int getStrength() const;
virtual void setStrength(int s);
virtual int getArmor() const;
virtual void Defense(int at) = 0;
virtual int Attack()=0;
int Dice (int num, int side)const;
};
#endif //NEW_PEOJECT3_CHARACTER_H