PHP Class GameMap, Halite

Show file Open project: HaliteChallenge/Halite Class Usage Examples

Public Properties

Property Type Description
$contents
$height
$width

Public Methods

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

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

getAngle() public method

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

getDistance() public method

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

getLocation() public method

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

getSite() public method

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

inBounds() public method

public inBounds ( Location $l )
$l Location

Property Details

$contents public property

public $contents

$height public property

public $height

$width public property

public $width