Package com.starpoints.game.figure
Class RocketRatingModifierMK2
- java.lang.Object
-
- com.starpoints.game.figure.RatingModifierMK2
-
- com.starpoints.game.figure.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 Summary
Fields Modifier and Type Field Description protected FigurefigThe Computer figure using this modifier.protected booleanisSelfmadeFlag, if rocket is fires by figure itself.protected ItemRocketrocketThe rocket.-
Fields inherited from class com.starpoints.game.figure.RatingModifierMK2
DEBUG, field, rating
-
-
Constructor Summary
Constructors Constructor Description RocketRatingModifierMK2(Figure f, ItemRocket r)Creates a RocketRatingModifier.
-
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 the modifier.-
Methods inherited from class com.starpoints.game.figure.RatingModifierMK2
isDangerRating, modifyRating, modifyRating, resetRatings, setRating
-
-
-
-
Field Detail
-
rocket
protected ItemRocket rocket
The rocket.
-
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:
isSelfMadein classRatingModifierMK2- Returns:
- false by default.
-
update
public boolean update()
Updates the 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
-
-