aboutsummaryrefslogtreecommitdiffstats
path: root/inc/Monster.inc
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-05-09 20:26:51 +0200
committeralexichi <alexbankai96@gmail.com>2016-05-09 20:26:51 +0200
commit2f32bc3153b7f2c2561e4603f912573921e6449f (patch)
tree87419a11e12f5b7433459fcb5cb9da5211dcbd9e /inc/Monster.inc
parentf1677164c3f46785f6d9380b68cdeba58a680404 (diff)
downloadcandybox-2f32bc3153b7f2c2561e4603f912573921e6449f.tar.gz
candybox-2f32bc3153b7f2c2561e4603f912573921e6449f.tar.bz2
candybox-2f32bc3153b7f2c2561e4603f912573921e6449f.tar.xz
candybox-2f32bc3153b7f2c2561e4603f912573921e6449f.zip
add the use of the objects and the feature power and maxHP
Diffstat (limited to 'inc/Monster.inc')
-rw-r--r--inc/Monster.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/Monster.inc b/inc/Monster.inc
index c7063ec..ae48691 100644
--- a/inc/Monster.inc
+++ b/inc/Monster.inc
@@ -7,12 +7,14 @@ class Monster {
public $hp = 1;
public $xp = 0;
public $level = 1;
+ public $power = 1;
- function __construct($name, $level, $hp, $xp, $icon) {
+ 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;
}