Class ColorMap

java.lang.Object
java.util.AbstractMap<K,​V>
java.util.HashMap<String,​Object>
edu.wisc.game.rest.ColorMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,​Object>

public class ColorMap
extends HashMap<String,​Object>
See Also:
Serialized Form
  • Constructor Details

    • ColorMap

      public ColorMap()
      Reads in the color map file
  • Method Details

    • getHex

      public String getHex​(Piece.Color color, boolean brighten)
    • getHex

      public String getHex​(String name, boolean brighten)
      Parameters:
      name - "RED"
      brighten - If true, replace with a lighter color, so that it can be more suitable for use as a background.
      Returns:
      "FF00000"
    • hasColor

      public boolean hasColor​(Piece.Color color)