summaryrefslogtreecommitdiff
path: root/src/mob.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mob.hpp')
-rw-r--r--src/mob.hpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/mob.hpp b/src/mob.hpp
new file mode 100644
index 0000000..496a7bd
--- /dev/null
+++ b/src/mob.hpp
@@ -0,0 +1,34 @@
+/*
+ * =====================================================================================
+ *
+ * Filename: mob.hpp
+ *
+ * Description: Defines a mobile entity
+ *
+ * Version: 1.0
+ * Created: 01/07/2023 09:54:14 PM
+ * Revision: none
+ * Compiler: gcc
+ *
+ * Author: Cara Salter (muirrum), cara@devcara.com
+ * Organization:
+ *
+ * =====================================================================================
+ */
+
+#pragma once
+class Mob {
+ int _row, _col;
+ char _symbol;
+ public:
+ // Create a mob
+ Mob(char symbol, int row_0, int col_0);
+ // Change mob position
+ void move(int row_0, int col_0);
+ // Get character's row (y) position
+ int row();
+ // Get mob's col (x) position
+ int col();
+ // Get the symbol that represents this mob
+ char symbol();
+};