Changed the items to static that was need to be.
This commit is contained in:
parent
4f60b29fc4
commit
0737ed92a8
|
@ -7,7 +7,7 @@ using namespace std;
|
|||
class Intro {
|
||||
public:
|
||||
|
||||
void mainIntro();
|
||||
static void mainIntro();
|
||||
private:
|
||||
|
||||
};
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <iostream>
|
||||
#include "intro.h"
|
||||
#include "title.h"
|
||||
#include <cstdlib>
|
||||
using namespace std;
|
||||
|
|
|
@ -8,6 +8,6 @@ using namespace std;
|
|||
|
||||
class Sleep{
|
||||
public:
|
||||
void delay(int milliseconds);
|
||||
void type(string text);
|
||||
static void delay(int milliseconds);
|
||||
static void type(string text);
|
||||
};
|
||||
|
|
|
@ -6,5 +6,5 @@ class Title{
|
|||
private:
|
||||
protected:
|
||||
public:
|
||||
void mainTitle();
|
||||
static void mainTitle();
|
||||
};
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
#include "include/intro.h"
|
||||
|
||||
void Intro::mainIntro(){
|
||||
Sleep sleep;
|
||||
int time = 1000;
|
||||
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 ");
|
||||
cout << endl;
|
||||
cout << endl;
|
||||
Sleep::type("");
|
||||
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 ");
|
||||
}
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
#include "include/main.h"
|
||||
|
||||
int main (){
|
||||
Title title;
|
||||
title.mainTitle();
|
||||
Intro intro;
|
||||
intro.mainIntro();
|
||||
system("clear");
|
||||
Title::mainTitle();
|
||||
Intro::mainIntro();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -3,18 +3,17 @@
|
|||
#include "include/sleep.h"
|
||||
|
||||
void Title::mainTitle(){
|
||||
Sleep sleep;
|
||||
int time = 700;
|
||||
cout << "███████╗██╗ ██╗ ██████╗ ████████╗ ██████╗ ██╗ ██╗███╗ ██╗ ██████╗ ███████╗████████╗███████╗" << endl;
|
||||
sleep.delay(time);
|
||||
Sleep::delay(time);
|
||||
cout << "██╔════╝██║ ██║██╔═══██╗╚══██╔══╝██╔════╝ ██║ ██║████╗ ██║ ██╔══██╗██╔════╝╚══██╔══╝██╔════╝" << endl;
|
||||
sleep.delay(time);
|
||||
Sleep::delay(time);
|
||||
cout << "███████╗███████║██║ ██║ ██║ ██║ ███╗██║ ██║██╔██╗ ██║ ██████╔╝█████╗ ██║ █████╗ " << endl;
|
||||
sleep.delay(time);
|
||||
Sleep::delay(time);
|
||||
cout << "╚════██║██╔══██║██║ ██║ ██║ ██║ ██║██║ ██║██║╚██╗██║ ██╔═══╝ ██╔══╝ ██║ ██╔══╝ " << endl;
|
||||
sleep.delay(time);
|
||||
Sleep::delay(time);
|
||||
cout << "███████║██║ ██║╚██████╔╝ ██║ ╚██████╔╝╚██████╔╝██║ ╚████║ ██║ ███████╗ ██║ ███████╗" << endl;
|
||||
sleep.delay(time);
|
||||
Sleep::delay(time);
|
||||
cout << "╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═╝ ╚══════╝ ╚═╝ ╚══════╝" << endl;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue