Package edu.wisc.game.rest
Class ColorMap
- All Implemented Interfaces:
- Serializable,- Cloneable,- Map<String,- Object> 
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetHex(Piece.Color color, boolean brighten) booleanhasColor(Piece.Color color) Methods inherited from class java.util.HashMapclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMapequals, hashCode, toString
- 
Constructor Details- 
ColorMappublic ColorMap()Reads in the color map file. // FIXME: Maybe it's not such a great idea that the server has just one // color map file, shared by all experiments.
 
- 
- 
Method Details- 
getHex
- 
getHex- 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
 
-