PHP Class PHPWarrior\Units\Base

Afficher le fichier Open project: yandod/php-warrior

Méthodes publiques

Свойство Type Description
$abilities
$bound
$position

Méthodes publiques

Méthode Description
__ToString ( ) : mixed __ToString function.
abilities ( ) : array Abilities.
add_abilities ( $new_abbilities ) Add some abilties.
attack_power ( ) : int, The attack power in the base.
bind ( ) bind.
character ( ) : string The character.
earn_points ( $points ) Earn points.
health ( ) : integer Health.
is_alive ( ) : boolean Is unit alive?
is_bound ( ) : mixed is_bound?
max_health ( ) : integer Maximum health.
name ( ) : mixed name.
next_turn ( ) : Turn Next turn.
perform_turn ( ) Perform your turn.
play_turn ( $turn ) Play your turn.
prepare_turn ( ) Prepare for your turn.
say ( $msg ) Say a message.
take_damage ( $amount ) Take damage.
unbind ( ) Unbind

Method Details

__ToString() public méthode

__ToString function.
public __ToString ( ) : mixed
Résultat mixed

abilities() public méthode

Abilities.
public abilities ( ) : array
Résultat array

add_abilities() public méthode

Add some abilties.
public add_abilities ( $new_abbilities )
$new_abbilities

attack_power() public méthode

The attack power in the base.
public attack_power ( ) : int,
Résultat int,

bind() public méthode

bind.
public bind ( )

character() public méthode

The character.
public character ( ) : string
Résultat string

earn_points() public méthode

Earn points.
public earn_points ( $points )
$points

health() public méthode

Health.
public health ( ) : integer
Résultat integer

is_alive() public méthode

Is unit alive?
public is_alive ( ) : boolean
Résultat boolean

is_bound() public méthode

is_bound?
public is_bound ( ) : mixed
Résultat mixed

max_health() public méthode

Maximum health.
public max_health ( ) : integer
Résultat integer

name() public méthode

name.
public name ( ) : mixed
Résultat mixed

next_turn() public méthode

Next turn.
public next_turn ( ) : Turn
Résultat PHPWarrior\Turn

perform_turn() public méthode

Perform your turn.
public perform_turn ( )

play_turn() public méthode

Play your turn.
public play_turn ( $turn )
$turn

prepare_turn() public méthode

Prepare for your turn.
public prepare_turn ( )

say() public méthode

Say a message.
public say ( $msg )
$msg

take_damage() public méthode

Take damage.
public take_damage ( $amount )
$amount

unbind() public méthode

Unbind
public unbind ( )

Property Details

$abilities public_oe property

public $abilities

$bound public_oe property

public $bound

$position public_oe property

public $position