Uses of Class
de.htwdd.rosenkoenig.game.Color

Packages that use Color
de.htwdd.rosenkoenig.game This packages contains all classes that implement the "business logic" of Rosenkoenig
de.htwdd.rosenkoenig.gui All classes that have to do anything with user interaction or game in- and outputs are located here. 
de.htwdd.rosenkoenig.gui.genuts This package contains a GUI implementation based on the Java gui framework Genuts
de.htwdd.rosenkoenig.neuro Contains all parts of Rosenkoenig that deal with neural networks. 
 

Uses of Color in de.htwdd.rosenkoenig.game
 

Fields in de.htwdd.rosenkoenig.game declared as Color
protected  Color Game.activePlayer
           
protected  Color[][] Game.board
           
protected  Color Game.passivePlayer
           
 

Fields in de.htwdd.rosenkoenig.game with type parameters of type Color
protected  java.util.EnumMap<Color,Player> Game.players
          This enumeration represents the players.
 

Methods in de.htwdd.rosenkoenig.game that return Color
 Color Game.getActivePlayer()
          Getter of the property activePlayer
 Color[][] Game.getBoard()
          Getter of the property board
 Color Game.getPassivePlayer()
          Getter of the property passivePlayer
 Color[][] Game.normalizeBoard()
          Normalize the board.
static Color Color.valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Color[] Color.values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 

Methods in de.htwdd.rosenkoenig.game that return types with arguments of type Color
 java.util.EnumMap<Color,Player> Game.getPlayers()
          Getter of the property players
 

Methods in de.htwdd.rosenkoenig.game with parameters of type Color
 int Game.calcScore(Color color)
           
private  int Game.getCoherentArea(Color color, int score, boolean[][] tmpBoard, int x, int y)
           
 boolean Game.isCardPlayable(Color player, Card card, boolean withKnight)
          Checks for player if card is playable.
 java.util.ArrayList<Card> Game.normalizeCards(Color player)
          Rotate (normalize) the cards for player depending on the position of the crown.
 void Game.setActivePlayer(Color activePlayer)
          Setter of the property activePlayer
 void Game.setBoard(Color[][] board)
          Setter of the property board
 void Game.setPassivePlayer(Color passivePlayer)
          Setter of the property passivePlayer
 

Method parameters in de.htwdd.rosenkoenig.game with type arguments of type Color
 void Game.setPlayers(java.util.EnumMap<Color,Player> players)
          Setter of the property players
 

Uses of Color in de.htwdd.rosenkoenig.gui
 

Methods in de.htwdd.rosenkoenig.gui with parameters of type Color
 void GUI.activatePlayer(Color color, boolean activate)
          Activate or deactivate the player's name string.
 void GameLogger.activatePlayer(Color color, boolean activate)
          Activate or deactivate the player's name string.
 void GUI.disablePlayer(Color color)
          Disables all controls of a single player.
 void GameLogger.disablePlayer(Color color)
          Disables all controls of a single player.
 void GUI.hideScoreChange(Color player)
          This method tells the GUI to hide a player's score increase.
 void GameLogger.hideScoreChange(Color player)
          This method tells the GUI to hide a player's score increase.
 void GUI.setBoard(Color[][] board)
          setBoard is called to replace the complete board.
 void GameLogger.setBoard(Color[][] color)
          setBoard is called to replace the complete board.
 void GUI.setCards(Color color, java.util.List<Card> cards)
          This method is called whenever a player's card deck has changed and sets a player's card deck.
 void GameLogger.setCards(Color color, java.util.List<Card> cards)
          This method is called whenever a player's card deck has changed and sets a player's card deck.
 void GUI.setCardState(Color color, ImageState state, int card, boolean knightable)
          setCardState is called whenever a card's state has changed.
 void GameLogger.setCardState(Color color, ImageState state, int card, boolean knightable)
          setCardState is called whenever a card's state has changed.
 void GUI.setKnights(Color color, int number)
          Sets the number of knights a player has left.
 void GameLogger.setKnights(Color color, int number)
          Sets the number of knights a player has left.
 void GUI.setKnightState(Color color, ImageState state)
          This method is called whenever a player's knights are enabled or disabled.
 void GameLogger.setKnightState(Color color, ImageState state)
          This method is called whenever a player's knights are enabled or disabled.
 void GUI.setScore(Color color, int score)
          Updates a player's score.
 void GameLogger.setScore(Color color, int score)
          Updates a player's score.
 void GUI.setScoreChange(Color color, int score)
          After the player selects the card he wants to play, the GUI shows the possible score increase.
 void GameLogger.setScoreChange(Color color, int score)
          After the player selects the card he wants to play, the GUI shows the possible score increase.
 void GUI.setStone(Color color, Position position, boolean perhaps)
          Sets a stone on the board.
 void GameLogger.setStone(Color color, Position position, boolean perhaps)
          Sets a stone on the board.
 

Uses of Color in de.htwdd.rosenkoenig.gui.genuts
 

Fields in de.htwdd.rosenkoenig.gui.genuts with type parameters of type Color
private  java.util.EnumMap<Color,Position[]> GenutsGUI.cardPositions
           
private  java.util.EnumMap<Color,Counter> GenutsGUI.counters
           
private  java.util.EnumMap<Color,GUICard[]> GenutsGUI.decks
           
private static java.util.EnumMap<Color,java.awt.Image> Stone.images
           
private static java.util.EnumMap<Color,java.awt.Image> Stone.imagesPerhaps
           
private  java.util.EnumMap<Color,Knights> GenutsGUI.knights
           
private  java.util.EnumMap<Color,Name> GenutsGUI.names
           
 

Methods in de.htwdd.rosenkoenig.gui.genuts with parameters of type Color
 void GenutsGUI.activatePlayer(Color color, boolean activate)
          Activate or deactivate the player's name string.
 void GenutsGUI.disablePlayer(Color color)
          Disables all controls of a single player.
 void GenutsGUI.hideScoreChange(Color color)
          This method tells the GUI to hide a player's score increase.
 void GenutsGUI.setBoard(Color[][] board)
          setBoard is called to replace the complete board.
 void GenutsGUI.setCards(Color color, java.util.List<Card> cards)
          This method is called whenever a player's card deck has changed and sets a player's card deck.
 void GenutsGUI.setCardState(Color color, ImageState state, int card, boolean knightable)
          setCardState is called whenever a card's state has changed.
private  void Stone.setColor(Color color, boolean transparent)
          Defines the stone's color.
 void GenutsGUI.setKnights(Color color, int number)
          Sets the number of knights a player has left.
 void GenutsGUI.setKnightState(Color color, ImageState state)
          This method is called whenever a player's knights are enabled or disabled.
 void GenutsGUI.setScore(Color color, int score)
          Updates a player's score.
 void GenutsGUI.setScoreChange(Color color, int score)
          After the player selects the card he wants to play, the GUI shows the possible score increase.
private  void GenutsGUI.setStone(Color color, boolean transparent, int x, int y)
          This method puts a stone to the specified logical position on the board.
 void GenutsGUI.setStone(Color color, Position position, boolean perhaps)
          Sets a stone on the board.
 

Constructors in de.htwdd.rosenkoenig.gui.genuts with parameters of type Color
GUICard(Card card, Game game, PlayField playfield, Color color)
          Creates and initializes a GUICard
Knights(Color player, Game game, PlayField playfield)
          Creates a new set of knights for the specified player, initially containing four knights.
Stone(Color color, boolean transparent)
          Creates a stone of the specified color and state.
 

Uses of Color in de.htwdd.rosenkoenig.neuro
 

Fields in de.htwdd.rosenkoenig.neuro with type parameters of type Color
private  java.util.EnumMap<Color,java.io.PrintStream> PatternCreator.printStreams
          Enumeration containing the PrintStreams of the feeds for the two players.