Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

CSC112 Spring 2016 Examples

2369 views
1
/* This is a class which performs an alpaca fracas.
2
Give it two packs, call go, and let the bloodbath begin! */
3
#ifndef FRACAS_H
4
#define FRACAS_H
5
#include "alpacaFracasPack.h"
6
7
class Fracas
8
{
9
public:
10
Fracas(AlpacaFracasPack *p1, AlpacaFracasPack *p2);
11
12
//run the fracas and return the winner!
13
AlpacaFracasPack *go();
14
15
private:
16
void printAlpaca(int x, AlpacaFracasPack *p, Alpaca *a);
17
void clearStatusArea();
18
AlpacaFracasPack *p1;
19
AlpacaFracasPack *p2;
20
};
21
#endif
22