Class RocketRatingModifierMK2

  • All Implemented Interfaces:
    java.io.Serializable

    public class RocketRatingModifierMK2
    extends RatingModifierMK2
    Point Rating Modifier for rocket danger calculation for CleverComputerFigureMK2.
    See Also:
    Serialized Form
    • Field Detail

      • fig

        protected Figure fig
        The Computer figure using this modifier.
      • isSelfmade

        protected boolean isSelfmade
        Flag, if rocket is fires by figure itself.
    • Constructor Detail

      • RocketRatingModifierMK2

        public RocketRatingModifierMK2​(Figure f,
                                       ItemRocket r)
        Creates a RocketRatingModifier.
        Parameters:
        f - The figure.
        r - The rocket.
    • Method Detail

      • isSelfMade

        public boolean isSelfMade()
        Checks, if this danger modifier is induced by figure itself.
        Overrides:
        isSelfMade in class RatingModifierMK2
        Returns:
        false by default.
      • update

        public boolean update()
        Updates the modifier.
        Specified by:
        update in class RatingModifierMK2
        Returns:
        true, if modifier is still valid.
      • toString

        public java.lang.String toString()
        Returns a string representation.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object