aboutsummaryrefslogtreecommitdiffstats
path: root/inc/Monster.inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc/Monster.inc')
-rw-r--r--inc/Monster.inc21
1 files changed, 21 insertions, 0 deletions
diff --git a/inc/Monster.inc b/inc/Monster.inc
new file mode 100644
index 0000000..c7063ec
--- /dev/null
+++ b/inc/Monster.inc
@@ -0,0 +1,21 @@
+<?php
+
+class Monster {
+ public $name = "";
+ public $icon = "";
+ public $desc = "";
+ public $hp = 1;
+ public $xp = 0;
+ public $level = 1;
+
+ function __construct($name, $level, $hp, $xp, $icon) {
+ $this->name = $name;
+ $this->level = $level;
+ $this->hp = $hp;
+ $this->xp = $xp;
+ $this->icon = $icon;
+
+ }
+}
+
+?>