Class support fighting between player vs monster or player vs player. More...
#include <Fight.h>
Public Member Functions | |||||
| Fight () | |||||
| Default constructor class Fight. More... | |||||
| Fight (Champion *c1, Champion *c2) | |||||
Constructor Class Fight
| |||||
| ~Fight () | |||||
| Destructor class Fight. More... | |||||
| void | heal (const Champion *const champ) | ||||
| Function set health. More... | |||||
| void | startFigft () | ||||
| Function starts fight between characters. More... | |||||
| string | getChamp1 () | ||||
| Get health from first character. More... | |||||
| string | getChamp2 () | ||||
| Get health from second character. More... | |||||
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Fight &p) |
Class support fighting between player vs monster or player vs player.
|
inline |
Default constructor class Fight.
Constructor Class Fight
| c1 | - pointer to first character |
| c2 | - pointer of second character |
|
inline |
Destructor class Fight.
|
inline |
Get health from first character.
|
inline |
Get health from second character.
| void Fight::heal | ( | const Champion *const | champ | ) |
Function set health.
| champ | - Basic helth champion |
| void Fight::startFigft | ( | ) |
Function starts fight between characters.
|
friend |