adding cs142 code
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#ifndef __ARCHER_H__
|
||||
#define __ARCHER_H__
|
||||
|
||||
#include "fighter.h"
|
||||
|
||||
class archer : public fighter {
|
||||
private:
|
||||
int original_speed;
|
||||
public:
|
||||
archer(string, int, int, int, int);
|
||||
|
||||
string get_type() { return "A"; };
|
||||
|
||||
int getDamage();
|
||||
void reset();
|
||||
bool useAbility();
|
||||
|
||||
int get_original_speed();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user