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 Figure
fig
The Computer figure using this modifier.protected boolean
isSelfmade
Flag, if rocket is fires by figure itself.protected ItemRocket
rocket
The 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 boolean
equals(java.lang.Object o)
boolean
isSelfMade()
Checks, if this danger modifier is induced by figure itself.java.lang.String
toString()
Returns a string representation.boolean
update()
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:
isSelfMade
in classRatingModifierMK2
- Returns:
- false by default.
-
update
public boolean update()
Updates the modifier.- Specified by:
update
in classRatingModifierMK2
- Returns:
- true, if modifier is still valid.
-
toString
public java.lang.String toString()
Returns a string representation.- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-