summaryrefslogtreecommitdiff
path: root/src/Game.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Game.php')
-rw-r--r--src/Game.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/Game.php b/src/Game.php
new file mode 100644
index 0000000..3a62f3e
--- /dev/null
+++ b/src/Game.php
@@ -0,0 +1,35 @@
+<?php
+
+namespace App;
+
+use App\Message\Handler;
+
+/**
+ * A Game class that handles game execution
+ */
+class Game
+{
+ protected $messages;
+
+ public function __construct()
+ {
+ $this->init();
+ }
+
+ protected function init()
+ {
+ // Do any pre set-up
+ $this->handler = new Handler(['inject']);
+ $this->sendOpeningMessage();
+ }
+
+ public function sendOpeningMessage()
+ {
+ $message = $this->handler->renderOpeningMessage();
+
+ $important = $this->handler->returnImportant('inject');
+
+ var_dump($message, $important);
+ }
+
+}