| 1 | RM | BC | VB | AR | RED | new Color(1.0f,0.0f,0.0f) |
| 2 | PJ | BB | SUV | - | GREEN | new Color(0.0f,1.0f,0.0f) |
| 3 | SOV | AM | BP | - | BLUE | new Color(0.0f,0.0f,1.0f) |
| 4 | JR | JC | PV | - | YELLOW | new Color(1.0f,1.0f,0.0f) |
| 5 | CM | HK | MSS | - | CYAN | new Color(0.5f,1.0f,1.0f) |
| 6 | MAM | AG | JCR | - | PURPLE | new Color(1.0f,0.5f,1.0f) |
| 7 | AVK | ZZ | DJ | - | ORANGE | new Color(1.0f,0.8f,0.3f) |
| 8 | ELG | LW | RT | - | PINK | new Color(1.0f,0.67f,0.67f) |
| 9 | PO | RG | AD | - | ORCHID | new Color(0.855f, 0.438f, 0.855f) |
Exposed Game Engine Methods
The following methods are exposed by the game engine and are available
to the player:
public ArrayList Cities() throws Exception;
public ArrayList
Links()
throws Exception;
| Method | Description |
| Cities() | Euclidean Coordinates and names of the cities on the map.
Each element of the ArrayList is of following type:
class _City
{
String name;
double x, y;
}
|
| Links() | Distances between cities on the map.
Each element of the ArrayList is of following type:
class _Link
{
String linkname;
String city1, city2;
double distance, speed;
}
|
Player Interface
Players are required to implement the following interface:
public interface IFCPlayer extends IFCConstants, Serializable {
public void register(Maps
__maps) throws Exception;
public String name()
throws Exception;
public boolean interactive()
throws Exception;
public Color color()
throws Exception;
public Move move()
throws Exception;
}
| Method | Description |
| register(Maps __maps) | Gives the Player a chance to get Game configuration parameters by calling the exposed methods of the Maps object __maps. |
| name() | Returns the name of the Player. |
| interactive() | HumanPlayer returns true, everyone else returns false. |
| color() | Returns the color of the player. |
| move() | Returns the sequence of images to be displayed. |
Software
The full software source tree and class files are available from:
http://www.cs.columbia.edu/~kamra/CS4444/Project2/Software
In addition, a targzipped version of the directory is also available in that directory. You can access the targzipped file directly at:
http://www.cs.columbia.edu/~kamra/CS4444/Project2/Software/software.tar.gz