Class ItemPhantomPoints

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class ItemPhantomPoints
    extends Item
    Point item that appears after a ItemWarpPoints has "warped" away. Won't add points to the collector.
    See Also:
    Serialized Form
    • Constructor Detail

      • ItemPhantomPoints

        public ItemPhantomPoints()
        Creates a new ItemPhantomPoints with 250000 energy per default.
      • ItemPhantomPoints

        public ItemPhantomPoints​(int p)
        Creates a new ItemPhantomPoints with the given energy (and point display).
        Parameters:
        p - The energy
    • Method Detail

      • getPainterClassname

        public java.lang.String getPainterClassname()
        Gets the fully qualified classname of the Painter to use for this item (in 2D game).
        Overrides:
        getPainterClassname in class Item
        Returns:
        "com.starpoints.painter.arena2D.PainterItemPhantomPoints"
      • getItemRating

        public int getItemRating()
        Returns an item value for ComputerFigures rating in the items category.
        Overrides:
        getItemRating in class Item
        Returns:
        0.
      • isAvailableInEditor

        public boolean isAvailableInEditor()
        Checks, if this item is available in level editor.
        Overrides:
        isAvailableInEditor in class Item
        Returns:
        false.
      • addStateProperties

        protected void addStateProperties​(ThingState state,
                                          AnimationInfo animation)
        Adds properties necessary for warp points painting.
        Overrides:
        addStateProperties in class Thing
        Parameters:
        state - The state to add properties to.
        animation - The current AnimationInfo.
      • onBePickedUp

        public boolean onBePickedUp​(Figure picker,
                                    AnimationInfo animation)
        Displays "Hahaha... Too late" on the picker.
        Overrides:
        onBePickedUp in class Item
        Parameters:
        picker - the picker
        animation - The AnimationInfo.
        Returns:
        false
      • performFieldEffect

        protected void performFieldEffect​(AnimationInfo animation)
        Counts down the display counter. Disappears, if 0 is reached.
        Overrides:
        performFieldEffect in class Item
        Parameters:
        animation - The AnimationInfo.
      • getPointBonus

        public int getPointBonus()
        Returns the point bonus.
        Overrides:
        getPointBonus in class Item
        Returns:
        0.
      • getCountDown

        public int getCountDown()
        Gets the count down counter.
        Returns:
        The count down counter.