PHP 클래스 PHPWarrior\Units\Warrior

상속: extends Base
파일 보기 프로젝트 열기: yandod/php-warrior

공개 메소드들

메소드 설명
__construct ( ) Class constructor.
attack_power ( )
character ( ) : string Character.
earn_points ( $points ) Earn points.
max_health ( ) : integer Set the maximum health.
name ( ) : mixed Return the character name.
perform_turn ( ) Perform the warrior his turn.
play_turn ( $turn ) Play the turn.
player ( ) : Player Player.
shoot_power ( ) : integer Set the shooting power.

메소드 상세

__construct() 공개 메소드

Class constructor.
public __construct ( )

attack_power() 공개 메소드

public attack_power ( )

character() 공개 메소드

Character.
public character ( ) : string
리턴 string

earn_points() 공개 메소드

Earn points.
public earn_points ( $points )
$points

max_health() 공개 메소드

Set the maximum health.
public max_health ( ) : integer
리턴 integer

name() 공개 메소드

Return the character name.
public name ( ) : mixed
리턴 mixed

perform_turn() 공개 메소드

Perform the warrior his turn.
public perform_turn ( )

play_turn() 공개 메소드

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

player() 공개 메소드

Player.
public player ( ) : Player
리턴 Player

shoot_power() 공개 메소드

Set the shooting power.
public shoot_power ( ) : integer
리턴 integer