Class ItemBlackBlocker

    • Constructor Detail

      • ItemBlackBlocker

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

      • getItemRating

        public int getItemRating()
        Returns an item value for ComputerFigures rating in the items category.
        Overrides:
        getItemRating in class Item
        Returns:
        energy * 200.
      • getDrawText

        public java.lang.String getDrawText()
        Returns a display string for UI. Might be null
        Overrides:
        getDrawText in class Item
        Returns:
        null as default.
      • explodes

        public boolean explodes​(Figure f,
                                Thing source,
                                DieReason reason,
                                AnimationInfo animation)
        Figure listener method.
        Specified by:
        explodes in interface FigureKillListener
        Overrides:
        explodes in class Item
        Parameters:
        f - The figure.
        source - The killing source.
        reason - The death reason.
        animation - AnimationInfo.
        Returns:
        true, if figure really explodes. true by default.