PHP Класс PHPWarrior\LevelLoader

Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

ace_score() публичный Метод

Ace score.
public ace_score ( $score )
$score

clue() публичный Метод

Clue.
public clue ( $clue )
$clue

description() публичный Метод

Description.
public description ( $desc )
$desc

size() публичный Метод

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

stairs() публичный Метод

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

time_bonus() публичный Метод

Time bonus.
public time_bonus ( $bonus )
$bonus

tip() публичный Метод

Tip.
public tip ( $tip )
$tip

unit() публичный Метод

unit.
public unit ( $unit, $x, $y, string $facing = ':north' ) : mixed
$unit
$x
$y
$facing string
Результат mixed

unit_to_constant() публичный Метод

Unit to constant
public unit_to_constant ( $name ) : string
$name
Результат string

warrior() публичный Метод

Warrior
public warrior ( $x, $y, $facing ) : mixed
$x
$y
$facing
Результат mixed