Compare commits

...

2 Commits

Author SHA1 Message Date
Justin bb8bc40c13 Cleaned up the code 2025-05-11 02:15:36 -05:00
Justin 0737ed92a8 Changed the items to static that was need to be. 2025-05-10 23:54:16 -05:00
7 changed files with 22 additions and 21 deletions

View File

@ -7,7 +7,7 @@ using namespace std;
class Intro { class Intro {
public: public:
void mainIntro(); static void mainIntro();
private: private:
}; };

View File

@ -1,4 +1,5 @@
#include <iostream> #include <iostream>
#include "intro.h" #include "intro.h"
#include "title.h" #include "title.h"
#include <cstdlib>
using namespace std; using namespace std;

View File

@ -8,6 +8,6 @@ using namespace std;
class Sleep{ class Sleep{
public: public:
void delay(int milliseconds); static void delay(int milliseconds);
void type(string text); static void type(string text);
}; };

View File

@ -1,10 +1,12 @@
#include <iostream> #include <iostream>
#include <unistd.h> #include <unistd.h>
#include "include/print.h"
#include "include/sleep.h"
using namespace std; using namespace std;
class Title{ class Title{
private: private:
protected: protected:
public: public:
void mainTitle(); static void mainTitle();
}; };

View File

@ -1,10 +1,12 @@
#include "include/intro.h" #include "include/intro.h"
void Intro::mainIntro(){ void Intro::mainIntro(){
Sleep sleep;
int time = 1000; int time = 1000;
sleep.delay(time); cout << endl;
sleep.type("The world didn't end with a bang. It ended with a groan.. and the scratching of death fingers against steel shutters."); cout << endl;
sleep.delay(time); Sleep::type("");
sleep.type("Pete used to sell shotgun, slug, and survival tips to deer hunters and doomsday preppers out of his rundown gun store "); Sleep::delay(time);
Sleep::type("The world didn't end with a bang. It ended with a groan.. and the scratching of death fingers against steel shutters.");
Sleep::delay(time);
Sleep::type("Pete used to sell shotgun, slug, and survival tips to deer hunters and doomsday preppers out of his rundown gun store ");
} }

View File

@ -1,9 +1,8 @@
#include "include/main.h" #include "include/main.h"
int main (){ int main (){
Title title; system("clear");
title.mainTitle(); Title::mainTitle();
Intro intro; Intro::mainIntro();
intro.mainIntro();
return 0; return 0;
} }

View File

@ -1,20 +1,17 @@
#include "include/title.h" #include "include/title.h"
#include "include/print.h"
#include "include/sleep.h"
void Title::mainTitle(){ void Title::mainTitle(){
Sleep sleep;
int time = 700; int time = 700;
cout << "███████╗██╗ ██╗ ██████╗ ████████╗ ██████╗ ██╗ ██╗███╗ ██╗ ██████╗ ███████╗████████╗███████╗" << endl; cout << "███████╗██╗ ██╗ ██████╗ ████████╗ ██████╗ ██╗ ██╗███╗ ██╗ ██████╗ ███████╗████████╗███████╗" << endl;
sleep.delay(time); Sleep::delay(time);
cout << "██╔════╝██║ ██║██╔═══██╗╚══██╔══╝██╔════╝ ██║ ██║████╗ ██║ ██╔══██╗██╔════╝╚══██╔══╝██╔════╝" << endl; cout << "██╔════╝██║ ██║██╔═══██╗╚══██╔══╝██╔════╝ ██║ ██║████╗ ██║ ██╔══██╗██╔════╝╚══██╔══╝██╔════╝" << endl;
sleep.delay(time); Sleep::delay(time);
cout << "███████╗███████║██║ ██║ ██║ ██║ ███╗██║ ██║██╔██╗ ██║ ██████╔╝█████╗ ██║ █████╗ " << endl; cout << "███████╗███████║██║ ██║ ██║ ██║ ███╗██║ ██║██╔██╗ ██║ ██████╔╝█████╗ ██║ █████╗ " << endl;
sleep.delay(time); Sleep::delay(time);
cout << "╚════██║██╔══██║██║ ██║ ██║ ██║ ██║██║ ██║██║╚██╗██║ ██╔═══╝ ██╔══╝ ██║ ██╔══╝ " << endl; cout << "╚════██║██╔══██║██║ ██║ ██║ ██║ ██║██║ ██║██║╚██╗██║ ██╔═══╝ ██╔══╝ ██║ ██╔══╝ " << endl;
sleep.delay(time); Sleep::delay(time);
cout << "███████║██║ ██║╚██████╔╝ ██║ ╚██████╔╝╚██████╔╝██║ ╚████║ ██║ ███████╗ ██║ ███████╗" << endl; cout << "███████║██║ ██║╚██████╔╝ ██║ ╚██████╔╝╚██████╔╝██║ ╚████║ ██║ ███████╗ ██║ ███████╗" << endl;
sleep.delay(time); Sleep::delay(time);
cout << "╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝" << endl; cout << "╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝" << endl;
} }