aboutsummaryrefslogtreecommitdiffstats
path: root/inc/Monster.inc
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-05-09 22:06:30 +0200
committerpiernov <piernov@piernov.org>2016-05-09 22:06:30 +0200
commitf10c51f07a755d75a583f85316efbcd3bd1e4b6d (patch)
tree87419a11e12f5b7433459fcb5cb9da5211dcbd9e /inc/Monster.inc
parent54635d17eef27eb2546d69599e4107b242509ced (diff)
parent2f32bc3153b7f2c2561e4603f912573921e6449f (diff)
downloadcandybox-f10c51f07a755d75a583f85316efbcd3bd1e4b6d.tar.gz
candybox-f10c51f07a755d75a583f85316efbcd3bd1e4b6d.tar.bz2
candybox-f10c51f07a755d75a583f85316efbcd3bd1e4b6d.tar.xz
candybox-f10c51f07a755d75a583f85316efbcd3bd1e4b6d.zip
Merge branch 'alexichi' of ssh://piernov.org/srv/git/candybox into alexichi
Diffstat (limited to 'inc/Monster.inc')
-rw-r--r--inc/Monster.inc23
1 files changed, 23 insertions, 0 deletions
diff --git a/inc/Monster.inc b/inc/Monster.inc
new file mode 100644
index 0000000..ae48691
--- /dev/null
+++ b/inc/Monster.inc
@@ -0,0 +1,23 @@
+<?php
+
+class Monster {
+ public $name = "";
+ public $icon = "";
+ public $desc = "";
+ public $hp = 1;
+ public $xp = 0;
+ public $level = 1;
+ public $power = 1;
+
+ function __construct($name, $level, $hp, $xp, $power, $icon) {
+ $this->name = $name;
+ $this->level = $level;
+ $this->hp = $hp;
+ $this->xp = $xp;
+ $this->power = $power;
+ $this->icon = $icon;
+
+ }
+}
+
+?>