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.
 
 
 

21 lines
691 B

//=======================
// archer.h
//=======================
// Derived from base class player
// For the job archer
#include <iostream>
#include "player.h"
class archer : public player // subclass archer publicly inherited from base player
{
public:
archer(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
};