Class ItemMagentaDouble

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

    public class ItemMagentaDouble
    extends ItemPermanent
    Item, that doubles the energy gain on magenta points.
    See Also:
    Serialized Form
    • Constructor Detail

      • ItemMagentaDouble

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

      • getItemRating

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

        public void performPermanentEffect​(Figure owner,
                                           AnimationInfo animation)
        Adds energy gain to the owner's energy if on a magenta point.
        Overrides:
        performPermanentEffect in class ItemPermanent
        Parameters:
        owner - The owner.
        animation - The AnimationInfo.
      • getFigureOverlayImageName

        public java.lang.String getFigureOverlayImageName​(AnimationInfo animation)
        Gets an image name for painting on the figure. Returns null by default for no overlay image.
        Overrides:
        getFigureOverlayImageName in class ItemPermanent
        Parameters:
        animation - The AnimationInfo.
        Returns:
        "item_magentadouble_sm_"+imageIndex.