/***********************************************************************

GECCO, a platform for command and control gaming

Copyright (C) 2001 Henrik Bäärnhielm, Andreas Enblom, Niklas
Hallenfur, Karl Hasselström, Henrik Hägerström, Oskar Linde, Jing Fu
Zi and Jon Åslund

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.

***********************************************************************/

package gecco.client;

import java.awt.*;

/**
 *  A ghost is a piece that is painted using a semi-transparent symbol. <p>
 *
 *  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
 * @created    June 27, 2001
 */
public class Ghost extends Piece {
    /**
     *  Constructor for the Ghost object
     *
     * @param  handle  Description of Parameter
     */
    public Ghost(int handle) {
        super(handle);
    }


    /**
     *  Constructor for the Ghost object
     *
     * @param  handle    Description of Parameter
     * @param  position  Description of Parameter
     * @param  name      Description of Parameter
     * @param  type      Description of Parameter
     */
    public Ghost(int handle, Position position,
            String name, String type) {
        super(handle, position, name, type);
    }


    /**
     *  Gets the Symbol attribute of the Ghost object
     *
     * @return    The Symbol value
     */
    public Image getSymbol() {
        return Symbols.getGhostSymbol(getType());
    }
}
