Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

CSC112 Spring 2016 Examples

2370 views
1
#ifndef jmetcalf_superAlpaca_H
2
#define jmetcalf_superAlpaca_H
3
#include "../alpaca.h"
4
5
#include "../alpacaFracasPack.h"
6
7
class superAlpaca : public Alpaca
8
{
9
public:
10
//set up the alapca with 40 points
11
superAlpaca(const std::string &nickName) : Alpaca(40), nickName(nickName), cloneA(NULL), cloneB(NULL), first(true) {}
12
13
//delete the clones and the alpaca
14
~superAlpaca();
15
16
//the alpaca's brain!
17
virtual std::string name();
18
virtual void act(Alpaca *oponent);
19
20
//stuff this alpaca does
21
virtual void charge(int a, int b, int c);
22
virtual void kill(Alpaca *opponent);
23
virtual void weaken(Alpaca *opponent);
24
25
protected:
26
std::string nickName;
27
superAlpaca *cloneA;
28
superAlpaca *cloneB;
29
bool first;
30
};
31
32
#endif
33
34