Class ItemNoFX

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

    public class ItemNoFX
    extends Item
    Item, that stops all point fx for a number of rounds depending on this items energy.
    See Also:
    Serialized Form
    • Constructor Detail

      • ItemNoFX

        public ItemNoFX()
        Creates a new ItemNoFX.
    • Method Detail

      • 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.
      • onBePickedUp

        public boolean onBePickedUp​(Figure picker,
                                    AnimationInfo animation)
        Stops all point fx for a number of rounds depending on this items energy.
        Overrides:
        onBePickedUp in class Item
        Parameters:
        picker - the picker
        animation - The AnimationInfo.
        Returns:
        false