Modifier and Type | Method and Description |
---|---|
void |
TitlePanel.setLocalPlayerColor(CatanColor value) |
Modifier and Type | Field and Description |
---|---|
private CatanColor |
LogEntry.color
Color used when displaying the message
|
Modifier and Type | Method and Description |
---|---|
CatanColor |
LogEntry.getColor() |
Modifier and Type | Method and Description |
---|---|
void |
LogEntry.setColor(CatanColor color) |
Constructor and Description |
---|
LogEntry(CatanColor color,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
private CatanColor |
SelectColorView.getColorByNumber(int val) |
CatanColor |
SelectColorView.getSelectedColor() |
CatanColor |
ISelectColorView.getSelectedColor()
Returns the color selected by the user
|
Modifier and Type | Method and Description |
---|---|
private javax.swing.JButton |
SelectColorView.getButtonForColor(CatanColor color) |
void |
JoinGameController.joinGame(CatanColor color) |
void |
IJoinGameController.joinGame(CatanColor color)
Called by the select color view when the user clicks the "Join Game"
button
|
void |
SelectColorView.setColorEnabled(CatanColor color,
boolean enable) |
void |
ISelectColorView.setColorEnabled(CatanColor color,
boolean enable)
Enables or disables the specified color.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MapController.CanPlaceCity(Coordinate point,
CatanColor color) |
boolean |
IMapController.CanPlaceCity(Coordinate point,
CatanColor color)
This method is called whenever the user is trying to place a city on the
map.
|
boolean |
MapController.CanPlaceRoad(Coordinate p1,
Coordinate p2,
CatanColor color) |
boolean |
IMapController.CanPlaceRoad(Coordinate p1,
Coordinate p2,
CatanColor color)
This method is called whenever the user is trying to place a road on the
map.
|
boolean |
MapController.CanPlaceSettlement(Coordinate point,
CatanColor color) |
boolean |
IMapController.CanPlaceSettlement(Coordinate point,
CatanColor color)
This method is called whenever the user is trying to place a settlement
on the map.
|
Modifier and Type | Method and Description |
---|---|
private void |
MapComponent.drawGamePiece(java.awt.Graphics2D g2,
java.awt.Polygon polygon,
CatanColor color) |
private void |
MapComponent.drawRoads(java.awt.Graphics2D g2,
Edge edge,
CatanColor color) |
Modifier and Type | Field and Description |
---|---|
protected CatanColor |
DropObject.color |
Modifier and Type | Method and Description |
---|---|
CatanColor |
DropObject.GetColor()
Gets the color of the object being placed.
|
Constructor and Description |
---|
CityDropObject(IMapController controller,
CatanColor color)
Creates a city drop object.
|
DropObject(IMapController controller,
CatanColor color) |
RoadDropObject(IMapController controller,
CatanColor color)
Creates a RoadDropObject.
|
RobberDropObject(IMapController controller,
CatanColor color)
Creates a RobberDropObject.
|
SettlementDropObject(IMapController controller,
CatanColor color)
Creates a SettlementDropObject.
|
Modifier and Type | Field and Description |
---|---|
private CatanColor |
ClientGameManager.myPlayerColor |
Modifier and Type | Method and Description |
---|---|
CatanColor |
ClientGameManager.myPlayerColor()
The current player's color
|
Modifier and Type | Method and Description |
---|---|
boolean |
ClientGameManager.joinGame(GameInfo game,
CatanColor color)
Joins a game
|
Modifier and Type | Method and Description |
---|---|
void |
ServerProxy.joinGame(int id,
CatanColor color) |
void |
RealEarlyServerProxy.joinGame(int id,
CatanColor color) |
void |
MockServerProxy.joinGame(int id,
CatanColor color) |
void |
GSONServerProxy.joinGame(int id,
CatanColor color) |
void |
EarlyServerProxy.joinGame(int id,
CatanColor color) |
Modifier and Type | Method and Description |
---|---|
void |
TurnTrackerView.initializePlayer(int playerIndex,
java.lang.String playerName,
CatanColor playerColor) |
void |
ITurnTrackerView.initializePlayer(int playerIndex,
java.lang.String playerName,
CatanColor playerColor)
Initializes the properties for a player in the turn tracker display
|
void |
TurnTrackerView.setLocalPlayerColor(CatanColor value) |
void |
ITurnTrackerView.setLocalPlayerColor(CatanColor value)
Sets the color to display for the local player
|
Modifier and Type | Method and Description |
---|---|
CatanColor |
AIHandler.PickColor(int id,
java.util.Set<CatanColor> notAvailable)
Asks the AI to pick a color.
|
Modifier and Type | Method and Description |
---|---|
CatanColor |
AIHandler.PickColor(int id,
java.util.Set<CatanColor> notAvailable)
Asks the AI to pick a color.
|
Modifier and Type | Method and Description |
---|---|
CatanColor |
AI.PickColor(java.util.Set<CatanColor> notAvailable)
Called to let a AI pick a color.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<CatanColor> |
AI.GetAvailableColors(java.util.Set<CatanColor> notAvailable) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<CatanColor> |
AI.GetAvailableColors(java.util.Set<CatanColor> notAvailable) |
CatanColor |
AI.PickColor(java.util.Set<CatanColor> notAvailable)
Called to let a AI pick a color.
|
Modifier and Type | Method and Description |
---|---|
protected CatanColor |
Personality.GetColor(GameModel model) |
Modifier and Type | Method and Description |
---|---|
protected int |
Personality.GetIndexByColor(GameModel model,
CatanColor color) |
Modifier and Type | Field and Description |
---|---|
private CatanColor |
GamesJoinCommand.color |
private CatanColor |
GamesCommandFactory.JoinBuilder.color |
Constructor and Description |
---|
GamesJoinCommand(NetworkCookie cookie,
int gameID,
CatanColor color)
Creates a command to join a game.
|
Modifier and Type | Method and Description |
---|---|
int |
RealServerGameManager.AddPlayer(java.lang.String name,
CatanColor color,
boolean isHuman,
int playerID) |
boolean |
GameTable.JoinGame(int playerID,
int gameID,
CatanColor color)
Joins a player to the game specified
|
Modifier and Type | Field and Description |
---|---|
private CatanColor |
PlayerInfo.color |
Modifier and Type | Method and Description |
---|---|
CatanColor |
PlayerInfo.getColor() |
Modifier and Type | Method and Description |
---|---|
void |
PlayerInfo.setColor(CatanColor color) |
Constructor and Description |
---|
PlayerInfo(java.lang.String name,
CatanColor color,
int index) |
PlayerInfo(java.lang.String name,
CatanColor color,
int index,
int id) |
Modifier and Type | Method and Description |
---|---|
static CatanColor |
CatanColor.fromString(java.lang.String s) |
static CatanColor |
CatanColor.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CatanColor[] |
CatanColor.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
CatanColor.toString(CatanColor type) |
Modifier and Type | Field and Description |
---|---|
CatanColor |
Player.color |
Modifier and Type | Method and Description |
---|---|
private CatanColor |
Translate.GetColorFromOwnerInt(int owner,
java.util.List<NetPlayer> players)
Helper function for fromNetMap function
|
CatanColor |
GameManager.getPlayerColorByIndex(int playerIndex) |
Modifier and Type | Method and Description |
---|---|
int |
GameManager.AddPlayer(java.lang.String name,
CatanColor color,
boolean isHuman)
Adds a player to the game
|
int |
GameManager.AddPlayer(java.lang.String name,
CatanColor color,
boolean isHuman,
int playerID)
Adds a players to the game
|
int |
GameManager.getPlayerIndexByColor(CatanColor color)
Gets the player index by color
|
Constructor and Description |
---|
Player(java.lang.String name,
int index,
CatanColor playerColor,
boolean isHuman)
Creates a Player
|
Player(java.lang.String name,
int index,
CatanColor playerColor,
boolean isHuman,
int ID) |
Modifier and Type | Field and Description |
---|---|
private CatanColor |
Transaction.color |
Modifier and Type | Method and Description |
---|---|
CatanColor |
Transaction.getColor() |
Constructor and Description |
---|
Transaction(HexType hexType,
PieceType pieceType,
CatanColor color)
Creates a transaction object.
|
Modifier and Type | Method and Description |
---|---|
void |
EdgeHandler.AddRoad(Coordinate p1,
Coordinate p2,
CatanColor color)
Adds a road to the map.
|
void |
VertexHandler.SetCity(Coordinate point,
CatanColor color)
Adds a city to the map.
|
void |
VertexHandler.SetSettlement(Coordinate point,
CatanColor color)
Adds a settlement to the map.
|
Modifier and Type | Field and Description |
---|---|
private CatanColor |
RoadCounter.Road.color |
private CatanColor |
MapModel.longestRoadColor |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<CatanColor,RoadCounter.Road> |
RoadCounter.RoadComparer.lengths |
Modifier and Type | Method and Description |
---|---|
CatanColor |
RoadCounter.Count() |
CatanColor |
RoadCounter.Road.GetColor() |
CatanColor |
RoadCounter.RoadComparer.GetLongestRoad(CatanColor currentLongest) |
CatanColor |
UnmodifiableMapModel.GetLongestRoadColor() |
CatanColor |
MapModel.GetLongestRoadColor() |
CatanColor |
IMapModel.GetLongestRoadColor()
Gets the longest road.
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<CatanColor> |
UnmodifiableMapModel.GetOccupiedVertices(Coordinate hexPoint) |
java.util.Iterator<CatanColor> |
MapModel.GetOccupiedVertices(Coordinate hexPoint) |
java.util.Iterator<CatanColor> |
IMapModel.GetOccupiedVertices(Coordinate hexPoint)
Gets the colors around a hex coordinate point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
UnmodifiableMapModel.CanPlaceCity(Coordinate point,
CatanColor color) |
boolean |
MapModel.CanPlaceCity(Coordinate point,
CatanColor color) |
boolean |
IMapModel.CanPlaceCity(Coordinate point,
CatanColor color)
Returns if a city can be placed.
|
boolean |
UnmodifiableMapModel.CanPlaceRoad(Coordinate p1,
Coordinate p2,
CatanColor color) |
boolean |
MapModel.CanPlaceRoad(Coordinate p1,
Coordinate p2,
CatanColor color) |
boolean |
IMapModel.CanPlaceRoad(Coordinate p1,
Coordinate p2,
CatanColor color)
Returns if a road can be placed.
|
boolean |
UnmodifiableMapModel.CanPlaceSettlement(Coordinate point,
CatanColor color) |
boolean |
MapModel.CanPlaceSettlement(Coordinate point,
CatanColor color) |
boolean |
IMapModel.CanPlaceSettlement(Coordinate point,
CatanColor color)
Returns if a Settlement can be placed at the specified location.
|
private RoadCounter.Road |
RoadCounter.CountRoad(Vertex start,
java.util.Set<Edge> counted,
CatanColor color) |
CatanColor |
RoadCounter.RoadComparer.GetLongestRoad(CatanColor currentLongest) |
java.util.Iterator<PortType> |
UnmodifiableMapModel.GetPorts(CatanColor color) |
java.util.Iterator<PortType> |
MapModel.GetPorts(CatanColor color) |
java.util.Iterator<PortType> |
IMapModel.GetPorts(CatanColor color)
Gets the ports available to a specific piece color.
|
void |
UnmodifiableMapModel.PlaceCity(Coordinate point,
CatanColor color) |
void |
MapModel.PlaceCity(Coordinate point,
CatanColor color) |
void |
IMapModel.PlaceCity(Coordinate point,
CatanColor color)
Adds a city to the board.
|
void |
UnmodifiableMapModel.PlaceRoad(Coordinate p1,
Coordinate p2,
CatanColor color) |
void |
MapModel.PlaceRoad(Coordinate p1,
Coordinate p2,
CatanColor color) |
void |
IMapModel.PlaceRoad(Coordinate p1,
Coordinate p2,
CatanColor color)
Puts a road on the map.
|
void |
UnmodifiableMapModel.PlaceSettlement(Coordinate point,
CatanColor color) |
void |
MapModel.PlaceSettlement(Coordinate point,
CatanColor color) |
void |
IMapModel.PlaceSettlement(Coordinate point,
CatanColor color)
Adds a settlement to the map.
|
private boolean |
MapModel.RoadsSatisfyRoadPlacement(Edge edge,
CatanColor color) |
private boolean |
MapModel.VillagesSatisfyRoadPlacement(Edge edge,
CatanColor color) |
Constructor and Description |
---|
Road(CatanColor color) |
Modifier and Type | Field and Description |
---|---|
private CatanColor |
Vertex.color |
private CatanColor |
Edge.color |
Modifier and Type | Method and Description |
---|---|
CatanColor |
Vertex.getColor() |
CatanColor |
Edge.getColor() |
Modifier and Type | Method and Description |
---|---|
void |
Edge.SetRoad(CatanColor color)
Places a road on the edge.
|
void |
Vertex.SetType(PieceType type,
CatanColor color)
Place a piece on the vertex.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
Serializer.sJoinGameReq(int id,
CatanColor color)
Serializes a request from a user to join a game
|
java.lang.String |
JSONSerializer.sJoinGameReq(int id,
CatanColor color) |
Modifier and Type | Method and Description |
---|---|
CatanColor |
PJoinGame.getColor() |
Modifier and Type | Method and Description |
---|---|
void |
PJoinGame.setColor(CatanColor color) |
Constructor and Description |
---|
PJoinGame(int id,
CatanColor color) |
Modifier and Type | Field and Description |
---|---|
(package private) CatanColor |
NetPlayer.color |
Modifier and Type | Method and Description |
---|---|
CatanColor |
NetPlayer.getColor() |
Modifier and Type | Method and Description |
---|---|
void |
NetPlayer.setColor(CatanColor color) |