Package edu.wisc.game.rest
Class ColorMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
public class ColorMap extends HashMap<String,Object>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
Constructor Summary
Constructors Constructor Description ColorMap()
Reads in the color map file -
Method Summary
Modifier and Type Method Description String
getHex(Piece.Color color, boolean brighten)
String
getHex(String name, boolean brighten)
boolean
hasColor(Piece.Color color)
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values