import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Collectible: Base class for collectible items such as power-ups, etc.
 * 
 * @author Martin Schend, Jannis Andrija Schnitzer
 * @version 2011-01-16
 */
public class Collectible  extends QuantumObject
{
    public void act() 
    {
        super.act();
    }
    
    /**
     * Dummy hit method. Only triggers when hitting a ManuallyControlledShip. The powerup is destroyed then
     * (after actions have been performed on the ship). A good indicator of programming mistakes inside a
     * Collectible subclass: the collectible doesn't disappear upon touching a ManuallyControlledShip.
     */
    public boolean hit(ManuallyControlledSpaceship ship)
    {
        // do nice things to the ship
        return false;
    }
}
