Class Weapon

Description

Model is representing the weapon.

  • author: Libor Tichy

Located in /Character/WeaponModel.php (line 15)

NObject
   |
   --Weapon
Method Summary
Weapon __construct ([mixed $weaponId = null])
mixed setDeffense (int $deffense)
void setId ( $id)
void setName (string $name)
mixed setOffense (int $attack)
void setPicture (string $picture)
void setPrice (int $price)
mixed &__get (string $item)
Methods
Constructor __construct (line 33)
  • access: public
Weapon __construct ([mixed $weaponId = null])
  • mixed $weaponId: weapon ID
setDeffense (line 108)

Sets the weapon deffense.

  • return: Exception
  • access: public
mixed setDeffense (int $deffense)
  • int $deffense
setId (line 55)

Sets the ID of the weapon.

  • access: public
void setId ( $id)
  • $id
setName (line 64)

Sets the name of weapon.

  • access: public
void setName (string $name)
  • string $name
setOffense (line 95)

Sets the weapon offense.

  • throws: Exceptin
  • access: public
mixed setOffense (int $attack)
  • int $attack
setPicture (line 73)

Sets the weapon picture.

  • access: public
void setPicture (string $picture)
  • string $picture
setPrice (line 82)

Sets the weapon price.

  • access: public
void setPrice (int $price)
  • int $price
__get (line 120)

Returns building property value.

  • access: public
mixed &__get (string $item)
  • string $item: property name

Documentation generated on Tue, 07 Jun 2011 20:47:29 +0200 by phpDocumentor 1.4.3