C# 클래스 AIsOfCatan.Board

상속: IBoard
파일 보기 프로젝트 열기: rasmusgreve/catan

공개 메소드들

메소드 설명
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