-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIgnitionSequence.cpp
34 lines (29 loc) · 1.04 KB
/
IgnitionSequence.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
// IgnitionSequence.cpp
#include "IgnitionSequence.h"
IgnitionSequence::IgnitionSequence() {
// Constructor
}
void IgnitionSequence::runSequence() {
std::cout << "Starting ignition sequence...\n";
checkSystems();
igniteEngine();
buildThrust();
}
void IgnitionSequence::checkSystems() {
std::cout << "Performing system checks...\n";
// Simulate a delay for system checks
std::this_thread::sleep_for(std::chrono::seconds(2));
std::cout << "Systems check complete. All systems are operational.\n";
}
void IgnitionSequence::igniteEngine() {
std::cout << "Igniting engine...\n";
// Simulate a delay for engine ignition
std::this_thread::sleep_for(std::chrono::seconds(3));
std::cout << "Engine ignition successful.\n";
}
void IgnitionSequence::buildThrust() {
std::cout << "Building thrust...\n";
// Simulate a delay for thrust build-up
std::this_thread::sleep_for(std::chrono::seconds(4));
std::cout << "Thrust build-up complete. Rocket is ready for launch.\n";
}