C# Класс AIsOfCatan.Board

Наследование: IBoard
Показать файл Открыть проект

Открытые методы

Метод Описание
Board ( int terrainSeed ) : System
Board ( int terrainSeed, int numberSeed ) : System
CanBuildPiece ( Intersection intersection ) : bool
CanBuildRoad ( Edge edge ) : bool
GetAdjacentEdges ( Intersection intersection ) : Edge[]
GetAdjacentEdges ( int tileIndex ) : Edge[]
GetAdjacentIntersections ( Edge edge ) : AIsOfCatan.API.Intersection[]
GetAdjacentIntersections ( int tileIndex ) : AIsOfCatan.API.Intersection[]
GetAdjacentTiles ( int index ) : List
GetAllEdges ( ) : Edge[]
GetAllIntersections ( ) : AIsOfCatan.API.Intersection[]
GetAllPieces ( ) : Piece>.Dictionary
GetAllRoads ( ) : int>.Dictionary
GetHarbors ( ) : AIsOfCatan.API.Harbor[]
GetLongestRoad ( ) : int>.Dictionary
GetPiece ( Intersection intersection ) : Piece
GetPieces ( int index ) : AIsOfCatan.API.Piece[]
GetPlayersHarbors ( int playerID ) : HarborType[]
GetPlayersLongestRoad ( int playerID ) : int
GetPossibleCities ( int playerID ) : AIsOfCatan.API.Intersection[]
GetPossibleRoads ( int playerID ) : Edge[]
GetPossibleSettlements ( int playerID ) : AIsOfCatan.API.Intersection[]
GetRoad ( Edge edge ) : int
GetRobberLocation ( ) : int
GetRowLength ( int row ) : int
GetTile ( int index ) : Tile
GetTile ( int row, int column ) : Tile
HasNoNeighbors ( Intersection intersection ) : bool
MoveRobber ( int index ) : IBoard
PlacePiece ( Intersection intersection, Piece p ) : IBoard
PlaceRoad ( Edge edge, int playerID ) : IBoard
ToString ( ) : string

Приватные методы

Метод Описание
AddPiece ( List list, Intersection intersection ) : void
Board ( ) : System
Board ( Tile terrain, int>.Dictionary roads, Piece>.Dictionary settlements, int robber, Harbor harbors, Intersection inter, Edge edges ) : System
CountRoadLengthFromIntersection ( int playerID, Intersection curInt, HashSet visited, HashSet globalVisited ) : int
GetTerrainCoords ( int index ) : int>.Tuple
GetTerrainIndex ( int row, int col ) : int
InitTerrain ( int terrainSeed, int numberSeed, bool randomNumbers ) : void
IsLegalEdge ( Edge edge ) : System.Boolean

Описание методов

Board() публичный метод

public Board ( int terrainSeed ) : System
terrainSeed int
Результат System

Board() публичный метод

public Board ( int terrainSeed, int numberSeed ) : System
terrainSeed int
numberSeed int
Результат System

CanBuildPiece() публичный метод

public CanBuildPiece ( Intersection intersection ) : bool
intersection AIsOfCatan.API.Intersection
Результат bool

CanBuildRoad() публичный метод

public CanBuildRoad ( Edge edge ) : bool
edge Edge
Результат bool

GetAdjacentEdges() публичный метод

public GetAdjacentEdges ( Intersection intersection ) : Edge[]
intersection AIsOfCatan.API.Intersection
Результат Edge[]

GetAdjacentEdges() публичный метод

public GetAdjacentEdges ( int tileIndex ) : Edge[]
tileIndex int
Результат Edge[]

GetAdjacentIntersections() публичный метод

public GetAdjacentIntersections ( Edge edge ) : AIsOfCatan.API.Intersection[]
edge Edge
Результат AIsOfCatan.API.Intersection[]

GetAdjacentIntersections() публичный метод

public GetAdjacentIntersections ( int tileIndex ) : AIsOfCatan.API.Intersection[]
tileIndex int
Результат AIsOfCatan.API.Intersection[]

GetAdjacentTiles() публичный метод

public GetAdjacentTiles ( int index ) : List
index int
Результат List

GetAllEdges() публичный метод

public GetAllEdges ( ) : Edge[]
Результат Edge[]

GetAllIntersections() публичный метод

public GetAllIntersections ( ) : AIsOfCatan.API.Intersection[]
Результат AIsOfCatan.API.Intersection[]

GetAllPieces() публичный метод

public GetAllPieces ( ) : Piece>.Dictionary
Результат Piece>.Dictionary

GetAllRoads() публичный метод

public GetAllRoads ( ) : int>.Dictionary
Результат int>.Dictionary

GetHarbors() публичный метод

public GetHarbors ( ) : AIsOfCatan.API.Harbor[]
Результат AIsOfCatan.API.Harbor[]

GetLongestRoad() публичный метод

public GetLongestRoad ( ) : int>.Dictionary
Результат int>.Dictionary

GetPiece() публичный метод

public GetPiece ( Intersection intersection ) : Piece
intersection AIsOfCatan.API.Intersection
Результат AIsOfCatan.API.Piece

GetPieces() публичный метод

public GetPieces ( int index ) : AIsOfCatan.API.Piece[]
index int
Результат AIsOfCatan.API.Piece[]

GetPlayersHarbors() публичный метод

public GetPlayersHarbors ( int playerID ) : HarborType[]
playerID int
Результат HarborType[]

GetPlayersLongestRoad() публичный метод

public GetPlayersLongestRoad ( int playerID ) : int
playerID int
Результат int

GetPossibleCities() публичный метод

public GetPossibleCities ( int playerID ) : AIsOfCatan.API.Intersection[]
playerID int
Результат AIsOfCatan.API.Intersection[]

GetPossibleRoads() публичный метод

public GetPossibleRoads ( int playerID ) : Edge[]
playerID int
Результат Edge[]

GetPossibleSettlements() публичный метод

public GetPossibleSettlements ( int playerID ) : AIsOfCatan.API.Intersection[]
playerID int
Результат AIsOfCatan.API.Intersection[]

GetRoad() публичный метод

public GetRoad ( Edge edge ) : int
edge Edge
Результат int

GetRobberLocation() публичный метод

public GetRobberLocation ( ) : int
Результат int

GetRowLength() публичный статический метод

public static GetRowLength ( int row ) : int
row int
Результат int

GetTile() публичный метод

public GetTile ( int index ) : Tile
index int
Результат AIsOfCatan.API.Tile

GetTile() публичный метод

public GetTile ( int row, int column ) : Tile
row int
column int
Результат AIsOfCatan.API.Tile

HasNoNeighbors() публичный метод

public HasNoNeighbors ( Intersection intersection ) : bool
intersection AIsOfCatan.API.Intersection
Результат bool

MoveRobber() публичный метод

public MoveRobber ( int index ) : IBoard
index int
Результат IBoard

PlacePiece() публичный метод

public PlacePiece ( Intersection intersection, Piece p ) : IBoard
intersection AIsOfCatan.API.Intersection
p AIsOfCatan.API.Piece
Результат IBoard

PlaceRoad() публичный метод

public PlaceRoad ( Edge edge, int playerID ) : IBoard
edge Edge
playerID int
Результат IBoard

ToString() публичный метод

public ToString ( ) : string
Результат string