edu.udo.cs.ie.cowbots.ui.theme
Class CowbotColorTable
java.lang.Object
edu.udo.cs.ie.cowbots.ui.theme.CowbotColorTable
public class CowbotColorTable
- extends java.lang.Object
color table for cowbot scenario entities.
Constructor Summary |
CowbotColorTable()
constructs a new cowbotcolortable instance,
and assigns default colors to world entities. |
Method Summary |
java.awt.Color |
getColor(int index)
returns the color associated with an entity |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
C_ALLY
public static final int C_ALLY
- See Also:
- Constant Field Values
C_ENEMY
public static final int C_ENEMY
- See Also:
- Constant Field Values
C_CORRALOUR
public static final int C_CORRALOUR
- See Also:
- Constant Field Values
C_CORRALENEMY
public static final int C_CORRALENEMY
- See Also:
- Constant Field Values
C_EMPTY
public static final int C_EMPTY
- See Also:
- Constant Field Values
C_OBSTACLE
public static final int C_OBSTACLE
- See Also:
- Constant Field Values
C_FENCE
public static final int C_FENCE
- See Also:
- Constant Field Values
C_SWITCH
public static final int C_SWITCH
- See Also:
- Constant Field Values
C_COW
public static final int C_COW
- See Also:
- Constant Field Values
C_ACTIVEAGENT
public static final int C_ACTIVEAGENT
- See Also:
- Constant Field Values
colors
java.awt.Color[] colors
CowbotColorTable
public CowbotColorTable()
- constructs a new cowbotcolortable instance,
and assigns default colors to world entities.
getColor
public java.awt.Color getColor(int index)
- returns the color associated with an entity
- Parameters:
index
- entity index
- Returns:
- color value