Monster

Represent an Item in the shop or in the Inventory.

package

inc\Monster.inc

author

Alexandre Renoux

author

Pierre-Emmanuel Novac

Methods

Monster's constructor

__construct(string $name, integer $level, integer $hp, integer $xp, string $icon) : void

Arguments

$name

string

Monster's name

$level

integer

Monster's level

$hp

integer

Monster's HP

$xp

integer

Exp given by the Monster

$icon

string

Item's icon

Properties

Name of the Monster.

name : string
var

Name of the Monster.

Type(s)

string

Monster's icon.

icon : string
var

Monster's icon.

Type(s)

string

Monster's description.

desc : \desc
var

Monster's description.

Type(s)

\desc

HP of the Monster.

hp : integer
var

HP of the Monster.

Type(s)

integer

Exp given by this monster.

xp : integer
var

Exp given by this monster.

Type(s)

integer

Monster's level.

level : integer
var

Monster's level.

Type(s)

integer