edu.udo.cs.ie.cowbots.ui.theme
Class CowbotColorTable

Package class diagram package CowbotColorTable
java.lang.Object
  extended by edu.udo.cs.ie.cowbots.ui.theme.CowbotColorTable

public class CowbotColorTable
extends java.lang.Object

color table for cowbot scenario entities.


Field Summary
static int C_ACTIVEAGENT
           
static int C_ALLY
           
static int C_CORRALENEMY
           
static int C_CORRALOUR
           
static int C_COW
           
static int C_EMPTY
           
static int C_ENEMY
           
static int C_FENCE
           
static int C_OBSTACLE
           
static int C_SWITCH
           
(package private)  java.awt.Color[] colors
           
 
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
 

Field Detail

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
Constructor Detail

CowbotColorTable

public CowbotColorTable()
constructs a new cowbotcolortable instance, and assigns default colors to world entities.

Method Detail

getColor

public java.awt.Color getColor(int index)
returns the color associated with an entity

Parameters:
index - entity index
Returns:
color value