forked from azram19/CPP_CLUB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
clubMain.cpp
53 lines (40 loc) · 1.04 KB
/
clubMain.cpp
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
49
50
51
52
53
#include "club.hpp"
#include "mob.hpp"
#include "queue.hpp"
#include "dateTime.hpp"
#include "event.hpp"
#include <list>
#include <cstdlib>
const unsigned int seed = 1287239023;
const int sizeOfTheClub = 5;
const int sizeOfTheQueue = 10;
const int numberOfStaff = 1;
const int numberOfDrugDealers = 2;
int main(){
srand(seed);
std::list<Event> events;
Club theClub("Koko", sizeOfTheClub, sizeOfTheQueue, numberOfStaff, numberOfDrugDealers, "23/10/2011 01:00:00");
theClub.setTick(50);
theClub.setAgeLimit(36);
int numberOfTicks;
/*
TODO: Read data, and events.
*/
/*
Cycle
*/
for(int i = 0; i < numberOfTicks; i++){
theClub.theQueue().updatePositions();
theClub.theQueue().moveToTheClub(theClub);
theClub.theQueue().enter();
theClub.theMob().moveToTheQueue(theClub.theQueue());
theClub.theMob().enter();
theClub.enter();
theClub.funfunfun(events.pop_front());
theClub.tick(); //This is where everything in the club happens - tips, catching etc...
}
/*
For every policeman and staff and drug dealer print how much he earned.
*/
return 0;
}