PHP Class PHPWarrior\LevelLoader

Afficher le fichier Open project: yandod/php-warrior

Méthodes publiques

Méthode Description
__construct ( $level, $load_path ) Class constructor
ace_score ( $score ) Ace score.
clue ( $clue ) Clue.
description ( $desc ) Description.
size ( $width, $height ) Size.
stairs ( $x, $y ) Stairs.
time_bonus ( $bonus ) Time bonus.
tip ( $tip ) Tip.
unit ( $unit, $x, $y, string $facing = ':north' ) : mixed unit.
unit_to_constant ( $name ) : string Unit to constant
warrior ( $x, $y, $facing ) : mixed Warrior

Method Details

__construct() public méthode

Class constructor
public __construct ( $level, $load_path )
$level
$load_path

ace_score() public méthode

Ace score.
public ace_score ( $score )
$score

clue() public méthode

Clue.
public clue ( $clue )
$clue

description() public méthode

Description.
public description ( $desc )
$desc

size() public méthode

Size.
public size ( $width, $height )
$width
$height

stairs() public méthode

Stairs.
public stairs ( $x, $y )
$x
$y

time_bonus() public méthode

Time bonus.
public time_bonus ( $bonus )
$bonus

tip() public méthode

Tip.
public tip ( $tip )
$tip

unit() public méthode

unit.
public unit ( $unit, $x, $y, string $facing = ':north' ) : mixed
$unit
$x
$y
$facing string
Résultat mixed

unit_to_constant() public méthode

Unit to constant
public unit_to_constant ( $name ) : string
$name
Résultat string

warrior() public méthode

Warrior
public warrior ( $x, $y, $facing ) : mixed
$x
$y
$facing
Résultat mixed