Package com.starpoints.game.figure
Class MineRatingModifierMK2
- java.lang.Object
-
- com.starpoints.game.figure.RatingModifierMK2
-
- com.starpoints.game.figure.MineRatingModifierMK2
-
- All Implemented Interfaces:
java.io.Serializable
public class MineRatingModifierMK2 extends RatingModifierMK2
Modifier for mines placed on the field.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected FigurefigThe figure using this modifier.protected booleanisSelfmadeFlag, if rocket is fires by figure itself.protected ItemMinemineThe BigMine-
Fields inherited from class com.starpoints.game.figure.RatingModifierMK2
DEBUG, field, rating
-
-
Constructor Summary
Constructors Constructor Description MineRatingModifierMK2(Figure f, ItemMine m)Creates a new BombRatingModifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSelfMade()Checks, if this danger modifier is induced by figure itself.java.lang.StringtoString()Returns a string representation.booleanupdate()Updates this modifier.-
Methods inherited from class com.starpoints.game.figure.RatingModifierMK2
isDangerRating, modifyRating, modifyRating, resetRatings, setRating
-
-
-
-
Method Detail
-
isSelfMade
public boolean isSelfMade()
Checks, if this danger modifier is induced by figure itself.- Overrides:
isSelfMadein classRatingModifierMK2- Returns:
- false by default.
-
update
public boolean update()
Updates this modifier.- Specified by:
updatein classRatingModifierMK2- Returns:
- true, if modifier is still valid.
-
toString
public java.lang.String toString()
Returns a string representation.- Overrides:
toStringin classjava.lang.Object
-
-