PHP Class PHPWarrior\Profile

显示文件 Open project: yandod/php-warrior

Public Properties

Property Type Description
$abilities array
$average_grade
$current_epic_grades array
$current_epic_score
$epic boolean
$epic_score
$last_level_number integer
$level_number integer
$player_path
$score
$tower
$tower_path string
$warrior_name

Public Methods

Method Description
__ToString ( )
calculate_average_grade ( )
current_level ( ) : Level The current level.
decode ( $str ) : mixed Decode a string.
directory_name ( ) : mixed The directory name
enable_epic_mode ( )
enable_normal_mode ( )
encode ( $obj )
epic_score_with_grade ( ) : string Epic score with grade.
is_epic ( )
is_level_after_epic ( )
load ( $path ) : mixed load
next_level ( ) : Level The next level.
player_path ( ) : string The pad to the player.php file.
save ( ) Save
tower ( ) : Tower Tower.
update_epic_score ( )

Method Details

__ToString() public method

public __ToString ( )

calculate_average_grade() public method

current_level() public method

The current level.
public current_level ( ) : Level
return Level

decode() public static method

Decode a string.
public static decode ( $str ) : mixed
$str
return mixed

directory_name() public method

The directory name
public directory_name ( ) : mixed
return mixed

enable_epic_mode() public method

public enable_epic_mode ( )

enable_normal_mode() public method

public enable_normal_mode ( )

encode() public static method

public static encode ( $obj )

epic_score_with_grade() public method

Epic score with grade.
public epic_score_with_grade ( ) : string
return string

is_epic() public method

public is_epic ( )

is_level_after_epic() public method

public is_level_after_epic ( )

load() public static method

load
public static load ( $path ) : mixed
$path
return mixed

next_level() public method

The next level.
public next_level ( ) : Level
return Level

player_path() public method

The pad to the player.php file.
public player_path ( ) : string
return string

save() public method

Save
public save ( )

tower() public method

Tower.
public tower ( ) : Tower
return Tower

update_epic_score() public method

public update_epic_score ( )

Property Details

$abilities public_oe property

public array $abilities
return array

$average_grade public_oe property

public $average_grade

$current_epic_grades public_oe property

public array $current_epic_grades
return array

$current_epic_score public_oe property

public $current_epic_score

$epic public_oe property

public bool $epic
return boolean

$epic_score public_oe property

public $epic_score

$last_level_number public_oe property

public int $last_level_number
return integer

$level_number public_oe property

public int $level_number
return integer

$player_path public_oe property

public $player_path

$score public_oe property

public $score

$tower public_oe property

public $tower

$tower_path public_oe property

public string $tower_path
return string

$warrior_name public_oe property

public $warrior_name