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