C# Class MingStar.SimUniversity.Board.Board

Inheritance: IBoard
Mostrar archivo Open project: MingStar/SimUniversity Class Usage Examples

Protected Properties

Property Type Description
_edges ReadOnlyCollection
_hexagons HashSet
_hexgonPositions Hexagon>.Dictionary
_id2HexgonMap List>.Dictionary
_vertices ReadOnlyCollection

Public Methods

Method Description
BuildCampus ( Vertex vertex, CampusType type, System.Color color ) : void
BuildLink ( Edge side, System.Color color ) : void
Clear ( ) : void
GetEdges ( ) : IEnumerable
GetHexagons ( ) : MingStar.SimUniversity.Board.Hexagon[]
GetVertices ( ) : IEnumerable
UnBuildCampus ( VertexPosition whereAt ) : void
UnBuildLink ( EdgePosition whereAt ) : void
this ( EdgePosition pos ) : Edge
this ( Position pos ) : Hexagon
this ( int x, int y ) : Hexagon
this ( int id ) : MingStar.SimUniversity.Board.Hexagon[]
this ( VertexPosition pos ) : Vertex

Protected Methods

Method Description
this ( EdgePosition pos ) : IEdgeIBoard.System
this ( Position pos ) : IHexagonIBoard.System
this ( VertexPosition pos ) : IVertexIBoard.System

Private Methods

Method Description
CreateHexagon ( int id, DegreeType degree, Position position ) : Hexagon
GetHexagonOrNull ( Position position ) : Hexagon
GetLimits ( Position pos ) : void
IBoard ( ) : IEnumerable

Method Details

BuildCampus() public method

public BuildCampus ( Vertex vertex, CampusType type, System.Color color ) : void
vertex Vertex
type CampusType
color System.Color
return void

BuildLink() public method

public BuildLink ( Edge side, System.Color color ) : void
side Edge
color System.Color
return void

Clear() public method

public Clear ( ) : void
return void

GetEdges() public method

public GetEdges ( ) : IEnumerable
return IEnumerable

GetHexagons() public method

public GetHexagons ( ) : MingStar.SimUniversity.Board.Hexagon[]
return MingStar.SimUniversity.Board.Hexagon[]

GetVertices() public method

public GetVertices ( ) : IEnumerable
return IEnumerable

UnBuildCampus() public method

public UnBuildCampus ( VertexPosition whereAt ) : void
whereAt MingStar.SimUniversity.Contract.VertexPosition
return void

UnBuildLink() public method

public UnBuildLink ( EdgePosition whereAt ) : void
whereAt MingStar.SimUniversity.Contract.EdgePosition
return void

this() public method

public this ( EdgePosition pos ) : Edge
pos MingStar.SimUniversity.Contract.EdgePosition
return Edge

this() public method

public this ( Position pos ) : Hexagon
pos MingStar.SimUniversity.Contract.Position
return Hexagon

this() public method

public this ( int x, int y ) : Hexagon
x int
y int
return Hexagon

this() public method

public this ( int id ) : MingStar.SimUniversity.Board.Hexagon[]
id int
return MingStar.SimUniversity.Board.Hexagon[]

this() protected method

protected this ( EdgePosition pos ) : IEdgeIBoard.System
pos MingStar.SimUniversity.Contract.EdgePosition
return IEdgeIBoard.System

this() protected method

protected this ( Position pos ) : IHexagonIBoard.System
pos MingStar.SimUniversity.Contract.Position
return IHexagonIBoard.System

this() protected method

protected this ( VertexPosition pos ) : IVertexIBoard.System
pos MingStar.SimUniversity.Contract.VertexPosition
return IVertexIBoard.System

this() public method

public this ( VertexPosition pos ) : Vertex
pos MingStar.SimUniversity.Contract.VertexPosition
return Vertex

Property Details

_edges protected_oe property

protected ReadOnlyCollection _edges
return ReadOnlyCollection

_hexagons protected_oe property

protected HashSet _hexagons
return HashSet

_hexgonPositions protected_oe property

protected Dictionary _hexgonPositions
return Hexagon>.Dictionary

_id2HexgonMap protected_oe property

protected Dictionary> _id2HexgonMap
return List>.Dictionary

_vertices protected_oe property

protected ReadOnlyCollection _vertices
return ReadOnlyCollection