Package com.starpoints.game.listener
Interface FigureMoveListener
-
- All Known Implementing Classes:
ItemChrystalStone
,ItemDriller
,ItemSatellite
public interface FigureMoveListener
Listener interface for events when figure moves.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
beforeMove(Figure f, Point p, Point newP, AnimationInfo animation)
Called, before the figure moves to a new point.boolean
removeAfterLevel()
Checks, if the listener wants to be removed after level has finished
-
-
-
Method Detail
-
beforeMove
boolean beforeMove(Figure f, Point p, Point newP, AnimationInfo animation)
Called, before the figure moves to a new point.- Parameters:
f
- The figure.p
- The figures current point.newP
- The point the figures wants to move to.animation
- The AnimationInfo- Returns:
- true, if figure can move.
-
removeAfterLevel
boolean removeAfterLevel()
Checks, if the listener wants to be removed after level has finished- Returns:
- true, if listener should be removed after level ends.
-
-