Class ItemRamRepower

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

    public class ItemRamRepower
    extends Item
    Item, that repowers all ram power items.
    See Also:
    Serialized Form
    • Constructor Detail

      • ItemRamRepower

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

      • getItemRating

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

        public boolean onBePickedUp​(Figure picker,
                                    AnimationInfo animation)
        Restores energy of all ItemRamPower.
        Overrides:
        onBePickedUp in class Item
        Parameters:
        picker - The picker.
        animation - The AnimationInfo.
        Returns:
        false