C# Class catan.Tile

Show file Open project: wargamer/Catan Class Usage Examples

Public Properties

Property Type Description
Neighbors Tile>.Dictionary
Number int
TileType TileType
id int

Private Properties

Property Type Description

Public Methods

Method Description
Tile ( TileType type ) : System
Tile ( TileType type, int number ) : System
addNeighbor ( Tile t, NeighborLocation loc ) : void
hasNeighbor ( NeighborLocation loc ) : System.Boolean

Method Details

Tile() public method

public Tile ( TileType type ) : System
type TileType
return System

Tile() public method

public Tile ( TileType type, int number ) : System
type TileType
number int
return System

addNeighbor() public method

public addNeighbor ( Tile t, NeighborLocation loc ) : void
t Tile
loc NeighborLocation
return void

hasNeighbor() public method

public hasNeighbor ( NeighborLocation loc ) : System.Boolean
loc NeighborLocation
return System.Boolean

Property Details

Neighbors public property

public Dictionary Neighbors
return Tile>.Dictionary

Number public property

public int Number
return int

TileType public property

public TileType TileType
return TileType

id public property

public int id
return int