C# Class Bricklayer.Common.World.Map

Datei anzeigen Open project: Cyral/Bricklayer Class Usage Examples

Protected Properties

Property Type Description
random System.Random
width int

Public Methods

Method Description
InBounds ( int x, int y, int z = 1 ) : bool

Determines if a grid position is in the bounds of the map

InDrawBounds ( int x, int y ) : bool

Determines if a grid position is in the bounds of the drawing area (The map, but not the border)

PlayerFromID ( int id ) : Player

Returns a player from an ID

Method Details

InBounds() public method

Determines if a grid position is in the bounds of the map
public InBounds ( int x, int y, int z = 1 ) : bool
x int
y int
z int
return bool

InDrawBounds() public method

Determines if a grid position is in the bounds of the drawing area (The map, but not the border)
public InDrawBounds ( int x, int y ) : bool
x int
y int
return bool

PlayerFromID() public method

Returns a player from an ID
public PlayerFromID ( int id ) : Player
id int
return Bricklayer.Common.Entities.Player

Property Details

random protected_oe property

protected Random,System random
return System.Random

width protected_oe property

protected int width
return int