PHP Class PHPWarrior\LevelLoader

Mostra file Open project: yandod/php-warrior

Public Methods

Method 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 method

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

ace_score() public method

Ace score.
public ace_score ( $score )
$score

clue() public method

Clue.
public clue ( $clue )
$clue

description() public method

Description.
public description ( $desc )
$desc

size() public method

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

stairs() public method

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

time_bonus() public method

Time bonus.
public time_bonus ( $bonus )
$bonus

tip() public method

Tip.
public tip ( $tip )
$tip

unit() public method

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

unit_to_constant() public method

Unit to constant
public unit_to_constant ( $name ) : string
$name
return string

warrior() public method

Warrior
public warrior ( $x, $y, $facing ) : mixed
$x
$y
$facing
return mixed