diff --git a/src/include/intro.h b/src/include/intro.h index 4a2577f..2f68e2b 100644 --- a/src/include/intro.h +++ b/src/include/intro.h @@ -6,9 +6,6 @@ using namespace std; class Intro { public: - - void mainIntro(); -private: - + static void mainIntro(); }; diff --git a/src/include/print.h b/src/include/print.h index 63a5922..2d9b099 100644 --- a/src/include/print.h +++ b/src/include/print.h @@ -15,5 +15,6 @@ class Print{ static void printl(string text); static void println(string text); static void type(string text); + static void blank_line(); }; diff --git a/src/include/title.h b/src/include/title.h index f7673e2..3531d66 100644 --- a/src/include/title.h +++ b/src/include/title.h @@ -3,8 +3,6 @@ using namespace std; class Title{ - private: - protected: public: - void mainTitle(); + static void mainTitle(); }; diff --git a/src/intro.cpp b/src/intro.cpp index 6a5724f..21f01cd 100644 --- a/src/intro.cpp +++ b/src/intro.cpp @@ -1,6 +1,6 @@ #include "include/intro.h" 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; - std::this_thread::sleep_for(std::chrono::milliseconds(3000)); + Print::blank_line(); + Print::type("The world didn't end with a bang. It ended with a groan.. and the scratching of death fingers against steel shutters."); } diff --git a/src/main.cpp b/src/main.cpp index 7392e39..f6ab216 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,9 +2,10 @@ int main (){ system("clear"); - Title title; - title.mainTitle(); - Intro intro; - intro.mainIntro(); + //Title title; + Title::mainTitle(); + //Intro intro; + Intro::mainIntro(); + //cin >> ; return 0; } diff --git a/src/print.cpp b/src/print.cpp index af5d0a9..97d62cd 100644 --- a/src/print.cpp +++ b/src/print.cpp @@ -24,3 +24,7 @@ void Print::type(string text){ cout << endl; delete[] charArray; } + +void Print::blank_line(){ + cout << endl; +}