Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Field Summary

Fields inherited from class gecco.client.Piece
`MAX_MESSAGES`

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, toString`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD