Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

CSC112 Spring 2016 Examples

2370 views
1
//header file for rockPaca
2
3
#ifndef ISCHOMER_BLOBPACA_H
4
#define ISCHOMER_BLOBPACA_H
5
6
#include "../alpaca.h"
7
#include "../alpacaFracasPack.h"
8
#include <string>
9
#include <iostream>
10
11
class blobPaca : public Alpaca {
12
public:
13
//set up the alapca with 100 points
14
blobPaca(const std::string &nickName, AlpacaFracasPack *p) : Alpaca(60), nickName(nickName), pack(p) {}
15
16
//functions to override
17
virtual std::string name();
18
virtual void act(Alpaca *opponent);
19
20
//moveset
21
void congeal(); //increase defense
22
void snooze(); //do absolutely nothing
23
void reblob(); //heal
24
void ooze(Alpaca *opponent); //decrease their attack
25
void jellify(Alpaca *buddy); //increase Att
26
27
protected:
28
std::string nickName;
29
AlpacaFracasPack *pack;
30
31
};
32
33
#endif
34
35