summaryrefslogtreecommitdiff
path: root/HumanPlayer.cpp
diff options
context:
space:
mode:
authorXaviDCR92 <xavi.dcr@gmail.com>2018-07-09 19:26:13 +0200
committerXaviDCR92 <xavi.dcr@gmail.com>2018-07-09 19:26:13 +0200
commitf0b654b9bf3bc2a93c1f89d4cc3edcf77b948555 (patch)
tree91b7404dca0b6eb136cb7f9b144435419144b777 /HumanPlayer.cpp
parentd85464781580796bbcc744ae732e56d1920e3b0f (diff)
Game has been restructured in favor of OOP
Diffstat (limited to 'HumanPlayer.cpp')
-rw-r--r--HumanPlayer.cpp43
1 files changed, 43 insertions, 0 deletions
diff --git a/HumanPlayer.cpp b/HumanPlayer.cpp
new file mode 100644
index 0000000..eadebcf
--- /dev/null
+++ b/HumanPlayer.cpp
@@ -0,0 +1,43 @@
+/* **************************************
+ * Includes *
+ * **************************************/
+
+#include "HumanPlayer.h"
+
+/* **************************************
+ * Defines *
+ * **************************************/
+
+/* **************************************
+ * Structs and enums *
+ * **************************************/
+
+/* **************************************
+ * Local variables *
+ * **************************************/
+
+/* **************************************
+ * Functions definition *
+ * **************************************/
+
+HumanPlayer::HumanPlayer(const char* const strPlayerName) :
+Player(strPlayerName)
+{
+}
+
+/*****************************************************************//**
+ *
+ * \brief Event handler executed when human player presses
+ * left arrow button.
+ *
+ *********************************************************************/
+void HumanPlayer::onLeftBtnPressed(void)
+{
+ /* Also, send the event to Camera object. */
+ _cam.onLeftBtnPressed();
+}
+
+void HumanPlayer::drawHandler(void)
+{
+
+}