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

Fields inherited from class gecco.client.Piece
actionQueue, actions, currentAction, handle, MAX_MESSAGES, messages, name, position, properties, selected, type
 
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, setName, setPosition, setProperty, setProperty, setSelected, setType
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

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 Parameter
position - Description of Parameter
name - Description of Parameter
type - Description of Parameter
Method Detail

getSymbol

public Image getSymbol()
Gets the Symbol attribute of the Ghost object
Overrides:
getSymbol in class Piece
Returns:
The Symbol value