PHP Class GameMap, Halite

Afficher le fichier Open project: HaliteChallenge/Halite Class Usage Examples

Méthodes publiques

Свойство Type Description
$contents
$height
$width

Méthodes publiques

Méthode Description
__construct ( $width, $height, $numberOfPlayers )
getAngle ( Location $l1, Location $l2 )
getDistance ( Location $l1, Location $l2 )
getLocation ( Location $loc, $direction )
getSite ( Location $l, $direction = STILL )
inBounds ( Location $l )

Method Details

__construct() public méthode

public __construct ( $width, $height, $numberOfPlayers )

getAngle() public méthode

public getAngle ( Location $l1, Location $l2 )
$l1 Location
$l2 Location

getDistance() public méthode

public getDistance ( Location $l1, Location $l2 )
$l1 Location
$l2 Location

getLocation() public méthode

public getLocation ( Location $loc, $direction )
$loc Location

getSite() public méthode

public getSite ( Location $l, $direction = STILL )
$l Location

inBounds() public méthode

public inBounds ( Location $l )
$l Location

Property Details

$contents public_oe property

public $contents

$height public_oe property

public $height

$width public_oe property

public $width