Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

CSC112 Spring 2016 Examples

2370 views
1
//header file for cheatPaca
2
3
#ifndef ISCHOMER_CHEATPACA_H
4
#define ISCHOMER_CHEATPACA_H
5
6
#include "../alpaca.h"
7
#include "../alpacaFracasPack.h"
8
#include <string>
9
#include <iostream>
10
11
class cheatPaca : public Alpaca {
12
public:
13
//set up the alapca with 100 points
14
cheatPaca(const std::string &nickName, AlpacaFracasPack *p) : Alpaca(1), nickName(nickName), pack(p) {}
15
16
//functions to override
17
virtual std::string name();
18
virtual void act(Alpaca *opponent);
19
20
//lol
21
void troll(); //stall this game forever
22
void lol();
23
24
protected:
25
std::string nickName;
26
AlpacaFracasPack *pack;
27
28
};
29
30
#endif
31
32