public class ShiftProcessor<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
| Constructor and Description |
|---|
ShiftProcessor(@NotNull MapViewSettings mapViewSettings,
@NotNull MapView<G,A,R> mapView,
@NotNull MapModel<G,A,R> mapModel,
@NotNull InsertionModeSet<G,A,R> insertionModeSet)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canShift(@NotNull Direction dir)
Checks whether shifting is possible.
|
void |
shift(@NotNull Direction dir)
Shifts the map contents by one square.
|
public ShiftProcessor(@NotNull
@NotNull MapViewSettings mapViewSettings,
@NotNull
@NotNull MapView<G,A,R> mapView,
@NotNull
@NotNull MapModel<G,A,R> mapModel,
@NotNull
@NotNull InsertionModeSet<G,A,R> insertionModeSet)
mapViewSettings - the map view settings instancemapView - the map view to operate onmapModel - the map model to operate oninsertionModeSet - the insertion mode set to usepublic boolean canShift(@NotNull
@NotNull Direction dir)
dir - the direction to shiftpublic void shift(@NotNull
@NotNull Direction dir)
canShift(Direction)) nothing is changed.dir - the direction to shift