-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.h
68 lines (60 loc) · 1.6 KB
/
Player.h
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//
// Player.h
// Character
//
// Created by RX-78 01 on 3/26/13.
// Copyright (c) 2013 lilongyue. All rights reserved.
//
#ifndef __Character__Player__
#define __Character__Player__
#include <iostream>
#include <sstream>
#include "Character.h"
using std::ostringstream;
using std::string;
using std::cout;
using std::endl;
using std::cin;
#include "Sound.h"
#include "Monster.h"
class Player: public Character
{
private:
int _mana, _maxMana, _experience, _numHPPotions, _numManaPotions, _coins, _magicDamage, _hpPotion, _manaPotion;
Messenger *_msg;
public:
enum fightVictor {NEITHER, PLAYER, MONSTER};
enum attackOption {ATTACK, MAGICATTACK, DRINKHP, DRINKMANA};
Player()
{}
Player(Messenger&);
fightVictor turn(Monster &monster, attackOption choice);
bool randomEncounter();
void levelingSystem();
void enemyDrop (Monster & monster);
void treasureChest();
void movementDescription();
void magicAttack();
void addHPPotion(int numHPPotions);
void addManaPotion(int numManaPotions);
void subtractHPPotion();
void subtractManaPotions();
void drinkHPPotion();
void drinkManaPotion();
void decrementMana();
void addCoins (int numCoins);
int getMana();
void setMana(int mana);
int getMaxMana();
void setMaxMana(int maxMana);
int getExperience();
void setExperience(int exp);
int getHPPotions();
void setHPPotions(int potions);
int getManaPotions();
void setManaPotions(int potions);
int getCoins();
void setCoins(int coins);
int getLevel();
};
#endif /* defined(__Character__Player__) */