Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
PHPWarrior
Units
Sludge
PHP Class PHPWarrior\Units\Sludge
Inheritance:
extends
Base
ファイルを表示
Open project: yandod/php-warrior
Public Methods
Method
Description
__construct
( )
Class constructor.
attack_power
( ) :
integer
Your attack power.
character
( ) :
string
Your character.
max_health
( ) :
integer
Maximun health.
play_turn
(
$turn
)
Play your turn.
Method Details
__construct()
public
method
Class constructor.
public
__construct
( )
attack_power()
public
method
Your attack power.
public
attack_power
( ) :
integer
return
integer
character()
public
method
Your character.
public
character
( ) :
string
return
string
max_health()
public
method
Maximun health.
public
max_health
( ) :
integer
return
integer
play_turn()
public
method
Play your turn.
public
play_turn
(
$turn
)
$turn