Class ItemDoubleShields

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

    public class ItemDoubleShields
    extends Item
    Permanent item, that doubles all the collectors shieldings.
    See Also:
    Serialized Form
    • Constructor Detail

      • ItemDoubleShields

        public ItemDoubleShields()
        Creates a new ItemDoubleShields
    • Method Detail

      • addStateProperties

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

        public int getItemRating()
        Returns an item value for ComputerFigures rating in the items category.
        Overrides:
        getItemRating in class Item
        Returns:
        getCount() * 1000.
      • getImageName

        public java.lang.String getImageName​(AnimationInfo animation)
        Returns image name.
        Overrides:
        getImageName in class Thing
        Parameters:
        animation - The AnimationInfo.
        Returns:
        "item_doubleshields","item_doubleshields1" or "item_doubleshields2"
      • getCount

        protected int getCount()
        Gets the shield factor (0 = 2x, 1 = 4x, 2 = 8x).
        Returns:
        The shield factor.
      • onBePickedUp

        public boolean onBePickedUp​(Figure picker,
                                    AnimationInfo animation)
        Increases all owners shielding.
        Overrides:
        onBePickedUp in class Item
        Parameters:
        picker - The picker
        animation - The AnimationInfo.
        Returns:
        false.