|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfreerails.client.view.FreerailsCursor
public final class FreerailsCursor
Paints the cursor on the map, note the cursor's position is stored on the ModelRoot under the key CURSOR_POSITION.
| Field Summary | |
|---|---|
private java.awt.Image |
buildTrack
|
private java.awt.Image |
infoMode
|
private ImPoint |
lastCursorPosition
The location of the cursor last time paintCursor(.) was called. |
private ModelRoot |
modelRoot
|
private java.awt.Image |
removeTrack
|
private long |
timeArrived
The time in ms the cursor arrived at its current position. |
private java.awt.Image |
upgradeTrack
|
| Constructor Summary | |
|---|---|
FreerailsCursor(ModelRoot mr,
RenderersRoot rr)
Creates a new FreerailsCursor. |
|
| Method Summary | |
|---|---|
void |
paintCursor(java.awt.Graphics g,
java.awt.Dimension tileSize)
Paints the cursor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.awt.Image buildTrack
private final java.awt.Image upgradeTrack
private final java.awt.Image removeTrack
private final java.awt.Image infoMode
private final ModelRoot modelRoot
private ImPoint lastCursorPosition
private long timeArrived
| Constructor Detail |
|---|
public FreerailsCursor(ModelRoot mr,
RenderersRoot rr)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void paintCursor(java.awt.Graphics g,
java.awt.Dimension tileSize)
g - The graphics object to paint the cursor on.tileSize - The dimensions of a tile.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||