Moved to static that should have been done at first
This commit is contained in:
parent
f0daf29917
commit
8659174a14
|
@ -6,9 +6,6 @@ using namespace std;
|
||||||
|
|
||||||
class Intro {
|
class Intro {
|
||||||
public:
|
public:
|
||||||
|
static void mainIntro();
|
||||||
void mainIntro();
|
|
||||||
private:
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -15,5 +15,6 @@ class Print{
|
||||||
static void printl(string text);
|
static void printl(string text);
|
||||||
static void println(string text);
|
static void println(string text);
|
||||||
static void type(string text);
|
static void type(string text);
|
||||||
|
static void blank_line();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
class Title{
|
class Title{
|
||||||
private:
|
|
||||||
protected:
|
|
||||||
public:
|
public:
|
||||||
void mainTitle();
|
static void mainTitle();
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include "include/intro.h"
|
#include "include/intro.h"
|
||||||
|
|
||||||
void Intro::mainIntro(){
|
void Intro::mainIntro(){
|
||||||
cout << "The world didn't end with a bang. It ended with a groan.. and the scratching of death fingers against steel shutters." << endl;
|
Print::blank_line();
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(3000));
|
Print::type("The world didn't end with a bang. It ended with a groan.. and the scratching of death fingers against steel shutters.");
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
|
|
||||||
int main (){
|
int main (){
|
||||||
system("clear");
|
system("clear");
|
||||||
Title title;
|
//Title title;
|
||||||
title.mainTitle();
|
Title::mainTitle();
|
||||||
Intro intro;
|
//Intro intro;
|
||||||
intro.mainIntro();
|
Intro::mainIntro();
|
||||||
|
//cin >> ;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,3 +24,7 @@ void Print::type(string text){
|
||||||
cout << endl;
|
cout << endl;
|
||||||
delete[] charArray;
|
delete[] charArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Print::blank_line(){
|
||||||
|
cout << endl;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue