blob: ae4869124442b0c03dbfcc737f45c8dbacb2ab57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
}
}
?>
|