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 voidaddAdditionalItem(GeometryItem<?> geometryItem)protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.util.List<GeometryItem<?>>getAdditionalGeometryItems()abstract java.util.List<GeometryItem<?>>getGeometryItems()inthashCode()java.lang.StringtoString()-
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 addGeometryItemobjects, which are only relevant for displaying
-
getGeometryItems
public abstract java.util.List<GeometryItem<?>> getGeometryItems()
- Returns:
- a list of this hints
GeometryItemobjects.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Parameters:
other- theObject, we want to check the type of.- Returns:
true, ifotherisinstanceofHint.false, otherwise.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getAdditionalGeometryItems
public java.util.List<GeometryItem<?>> getAdditionalGeometryItems()
-
-