PHP Class PHPWarrior\Units\Archer

Inheritance: extends Base
Show file Open project: yandod/php-warrior

Public Methods

Method Description
__construct ( ) Class constructor.
character ( ) : string Type of character.
max_health ( ) : integer Maximun health
play_turn ( $turn ) Play turn.
shoot_power ( ) : integer Shooting power for the ranger.

Method Details

__construct() public method

Class constructor.
public __construct ( )

character() public method

Type of character.
public character ( ) : string
return string

max_health() public method

Maximun health
public max_health ( ) : integer
return integer

play_turn() public method

Play turn.
public play_turn ( $turn )
$turn

shoot_power() public method

Shooting power for the ranger.
public shoot_power ( ) : integer
return integer