forked from mayant15/AlmostPure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvent.h
49 lines (34 loc) · 779 Bytes
/
Event.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef EVENT_H
#define EVENT_H
#include <string>
#include <vector>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include "Dolphin.h"
using namespace std;
class Event {
private:
//event details
string message;
vector <string> options;
int fStats;
int mStats;
//linked events
vector<Event*> nextEvent;
public:
//constructors
Event();
Event(string s, vector<string> op, int f, int m);
Event(string s, int f, int m);
//getters
Event* getNext(int n);
//setters
void setMessage(string m);
void setNext(Event* e);
void setOptions(vector<string> op);
//methods
void updateStats(Dolphin& f, Dolphin& m);
void trigger();
};
#endif /* EVENT_H */