-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCBomb.h
38 lines (30 loc) · 1.12 KB
/
CBomb.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
#ifndef CBOMB_H
#define CBOMB_H
#include "CModule.h"
#include "CKeypads.h"
#include "CSerial.h"
#include "CWires.h"
#include "CSimonSays.h"
#include "Controls.h"
// *****************************************************************************************
// Class that initializes the bomb itself and contains all required modules
// *****************************************************************************************
class CBomb {
public:
CBomb (int moduleAmount, int timeLeft);
~CBomb (void);
void listLeft (void);
void listRight (void);
void showBomb (void);
bool isSolved (void) const;
void detonateBomb (void);
void showSolvedBomb (void);
CModule ** moduleList; // Pointer to array of modules dynamically included in the bomb
CModule * currentModule; // Pointer to currently selected module within moduleList array
int currentlyShown; // ID of currently shown bomb
int timeExplosion;
private:
int moduleAmount;
bool vowelSerial;
};
#endif // CBOMB_H