From 903656f674622ac6802020b159ff06bdb1c4efd2 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 11 Oct 2015 20:53:53 +0100 Subject: [PATCH] Added main menu placeholder --- src/UI/ui.cpp | 10 ++++++++++ src/main.cpp | 6 ++---- src/strings/strings.cpp | 5 ----- 3 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 src/UI/ui.cpp delete mode 100644 src/strings/strings.cpp diff --git a/src/UI/ui.cpp b/src/UI/ui.cpp new file mode 100644 index 0000000..c435a34 --- /dev/null +++ b/src/UI/ui.cpp @@ -0,0 +1,10 @@ +#include +#include + +namespace UI { + char[] ::mainMenu = "Hey look, it's the main menu!"; + + void displayMainMenu() { + std::cout << UI::mainMenu << std::endl; + } +} diff --git a/src/main.cpp b/src/main.cpp index 4c6ed4e..2ff105b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,7 +1,5 @@ -#include -#include "strings/strings.cpp" +#include "ui/ui.cpp" int main() { - std::cout << getString() << std::endl; - return 0; + UI::displayMainMenu(); } \ No newline at end of file diff --git a/src/strings/strings.cpp b/src/strings/strings.cpp deleted file mode 100644 index d8722e0..0000000 --- a/src/strings/strings.cpp +++ /dev/null @@ -1,5 +0,0 @@ -#include - -std::string getString() { - return "Hello World"; -} \ No newline at end of file