summaryrefslogtreecommitdiff
path: root/gui/messages.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-18 23:33:12 -0400
committerbd <bdunahu@operationnull.com>2025-04-18 23:33:12 -0400
commitf18eac2ac2e5760a4cb81784ad2f23f91b6643d6 (patch)
tree7555797f86728325763fe0de892b164a97d70a2f /gui/messages.h
parentc2af6262df9c37f83dc47901529e7e5e28d69636 (diff)
Ensure program is cleared upon load.
Diffstat (limited to 'gui/messages.h')
-rw-r--r--gui/messages.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/gui/messages.h b/gui/messages.h
new file mode 100644
index 0000000..84b8318
--- /dev/null
+++ b/gui/messages.h
@@ -0,0 +1,33 @@
+#ifndef MESSAGES_H
+#define MESSAGES_H
+#include <vector>
+#include <string>
+
+/**
+ * Humorous computer speak.
+ */
+#define RANDOM_MESSAGE(v) (v[std::rand() % v.size()])
+
+const std::vector<std::string> waiting = {
+ "WAITING FOR USER", "FRIENDS MISSING", "BORED", "SLEEPING"};
+const std::vector<std::string> bad_file = {
+ "BAD FILE", "TRY AGAIN", "SEEKING NEW READING MATERIAL"};
+const std::vector<std::string> load_file = {
+ "FILE LOADED", "FINISHED READING DATA. EAGERLY WAITING"};
+
+/**
+ * @return a random waiting message
+ */
+std::string get_waiting() { return RANDOM_MESSAGE(waiting); }
+
+/**
+ * @return a complaint about a bad file name
+ */
+std::string get_bad_file() { return RANDOM_MESSAGE(bad_file); }
+
+/**
+ * @return confirmation of file upload
+ */
+std::string get_load_file() { return RANDOM_MESSAGE(load_file); }
+
+#endif // MESSAGES_H