mirror of https://github.com/string1995/eee102.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
676 B
20 lines
676 B
//======================= |
|
// mage.h |
|
//======================= |
|
|
|
// Derived from base class player |
|
// For the job mage |
|
#include <iostream> |
|
#include "player.h" |
|
class mage : public player // subclass mage publicly inherited from base player |
|
{ |
|
public: |
|
mage(int lv_in=1, std::string name_in="Not Given"); |
|
// constructor with default level of 1 and name of "Not given" |
|
void isLevelUp(); |
|
bool attack (player &p); |
|
bool specialatt(player &p); |
|
/* These three are derived from the pure virtual functions of base class |
|
The definition of them will be given in this subclass. */ |
|
void AI(player &p); // Computer opponent |
|
};
|
|
|