Package com.starpoints.game.figure
Class BombRatingModifierMK2
- java.lang.Object
-
- com.starpoints.game.figure.RatingModifierMK2
-
- com.starpoints.game.figure.BombRatingModifierMK2
-
- All Implemented Interfaces:
java.io.Serializable
public class BombRatingModifierMK2 extends RatingModifierMK2
Modifier for big bombs 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 ItemBigMinemineThe BigMine-
Fields inherited from class com.starpoints.game.figure.RatingModifierMK2
DEBUG, field, rating
-
-
Constructor Summary
Constructors Constructor Description BombRatingModifierMK2(Figure f, ItemBigMine m)Creates a new BombRatingModifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)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
-
-
-
-
Field Detail
-
mine
protected ItemBigMine mine
The BigMine
-
fig
protected Figure fig
The figure using this modifier.
-
isSelfmade
protected boolean isSelfmade
Flag, if rocket is fires by figure itself.
-
-
Constructor Detail
-
BombRatingModifierMK2
public BombRatingModifierMK2(Figure f, ItemBigMine m)
Creates a new BombRatingModifier.- Parameters:
f- The figure.m- the BigMine.
-
-
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
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-