gecco.client
Class Ghost
java.lang.Object
|
+--gecco.client.Piece
|
+--gecco.client.Ghost
- public class Ghost
- extends Piece
A ghost is a piece that is painted using a semi-transparent symbol.
This is how a ghost is supposed to be used: A ghost piece is a remnant of a
usual piece. The ghost piece is something specific to the client, and the
server does not keep track of ghosts. The ghost should not have any actions
or properties, and should have a negative handle (the server uses positive
handles only).
- Author:
- Andreas Enblom
Constructor Summary |
Ghost(int handle)
Constructor for the Ghost object |
Ghost(int handle,
Position position,
String name,
String type)
Constructor for the Ghost object |
Method Summary |
Image |
getSymbol()
Gets the Symbol attribute of the Ghost object |
Methods inherited from class gecco.client.Piece |
abortAllExecutingActions, abortQueuedAction, addAction, addMessage, equals, executeNextAction, getActions, getAllQueuedActions, getExecutingAction, getHandle, getMessages, getName, getNumberOfMessages, getPosition, getProperties, getProperty, getType, hashCode, isSelected, paint, queue, removeAction, removeAllActions, removeProperty, removeProperty, setName, setPosition, setProperty, setProperty, setSelected, setType, toString |
Ghost
public Ghost(int handle)
- Constructor for the Ghost object
- Parameters:
handle
- Description of Parameter
Ghost
public Ghost(int handle,
Position position,
String name,
String type)
- Constructor for the Ghost object
- Parameters:
handle
- Description of Parameterposition
- Description of Parametername
- Description of Parametertype
- Description of Parameter
getSymbol
public Image getSymbol()
- Gets the Symbol attribute of the Ghost object
- Overrides:
getSymbol
in class Piece
- Returns:
- The Symbol value