Package com.treasure.hunt.strategy.hint
Class Hint
- java.lang.Object
-
- com.treasure.hunt.strategy.geom.HintAndMovement
-
- com.treasure.hunt.strategy.hint.Hint
-
- Direct Known Subclasses:
AngleHint
,CircleHint
public abstract class Hint extends HintAndMovement
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<GeometryItem<?>>
additionalGeometryItems
-
Constructor Summary
Constructors Constructor Description Hint()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addAdditionalItem(GeometryItem<?> geometryItem)
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.List<GeometryItem<?>>
getAdditionalGeometryItems()
abstract java.util.List<GeometryItem<?>>
getGeometryItems()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class com.treasure.hunt.strategy.geom.HintAndMovement
getStatusMessageItemsToBeAdded, getStatusMessageItemsToBeRemoved
-
-
-
-
Field Detail
-
additionalGeometryItems
protected java.util.List<GeometryItem<?>> additionalGeometryItems
-
-
Method Detail
-
addAdditionalItem
public void addAdditionalItem(GeometryItem<?> geometryItem)
- Parameters:
geometryItem
- to addGeometryItem
objects, which are only relevant for displaying
-
getGeometryItems
public abstract java.util.List<GeometryItem<?>> getGeometryItems()
- Returns:
- a list of this hints
GeometryItem
objects.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Parameters:
other
- theObject
, we want to check the type of.- Returns:
true
, ifother
isinstanceof
Hint
.false
, otherwise.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getAdditionalGeometryItems
public java.util.List<GeometryItem<?>> getAdditionalGeometryItems()
-
-