PHP Class PHPWarrior\Level

Exibir arquivo Open project: yandod/php-warrior

Public Properties

Property Type Description
$ace_score
$clue
$description
$floor
$number
$profile
$time_bonus
$tip
$warrior

Public Methods

Method Description
__construct ( $profile, $number ) Level constructor.
clear_bonus ( )
generate_player_files ( )
grade_for ( $score ) : string
grade_letter ( $percent ) : string
is_exists ( )
is_failed ( )
is_passed ( )
load_level ( )
load_path ( )
load_player ( )
play ( $turns = 1000 )
player_path ( )
score_calculation ( $current_score, $addition ) : string
setup_warrior ( $warrior ) : mixed
tally_points ( )

Method Details

__construct() public method

Level constructor.
public __construct ( $profile, $number )
$profile
$number

clear_bonus() public method

public clear_bonus ( )

generate_player_files() public method

grade_for() public method

public grade_for ( $score ) : string
$score
return string

grade_letter() public static method

public static grade_letter ( $percent ) : string
$percent
return string

is_exists() public method

public is_exists ( )

is_failed() public method

public is_failed ( )

is_passed() public method

public is_passed ( )

load_level() public method

public load_level ( )

load_path() public method

public load_path ( )

load_player() public method

public load_player ( )

play() public method

public play ( $turns = 1000 )

player_path() public method

public player_path ( )

score_calculation() public method

public score_calculation ( $current_score, $addition ) : string
$current_score
$addition
return string

setup_warrior() public method

public setup_warrior ( $warrior ) : mixed
$warrior
return mixed

tally_points() public method

public tally_points ( )

Property Details

$ace_score public_oe property

public $ace_score

$clue public_oe property

public $clue

$description public_oe property

public $description

$floor public_oe property

public $floor

$number public_oe property

public $number

$profile public_oe property

public $profile

$time_bonus public_oe property

public $time_bonus

$tip public_oe property

public $tip

$warrior public_oe property

public $warrior