Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

CSC112 Spring 2016 Examples

2370 views
1
//Header file for the master-of-the-mind Alpaca
2
3
#ifndef ISCHOMER_ZENPACA_H
4
#define ISCHOMER_ZENPACA_H
5
6
#include "../alpaca.h"
7
#include "../alpacaFracasPack.h"
8
#include <string>
9
10
class zenPaca : public Alpaca {
11
public:
12
//set up the alapca with 150 points
13
zenPaca(const std::string &nickName, AlpacaFracasPack *p) : Alpaca(150), nickName(nickName), pack(p) {}
14
15
//virtual functions to override
16
virtual std::string name();
17
virtual void act(Alpaca *opponent);
18
19
//moveset
20
void transcend(); //myAttack++ and defense ++
21
void mindread(Alpaca *opponent); //theirAttack-- and defense--
22
void zenKick(Alpaca *opponent); //powerful attack
23
void zenTap(Alpaca *opponent); //weaker attack
24
void inceptionate(Alpaca *opponent); //sleepmove
25
void zenergy(); //healing
26
void reflect(); //do nothing
27
28
protected:
29
std::string nickName;
30
AlpacaFracasPack *pack;
31
};
32
33
#endif
34
35