public class AutoInsertionMode<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.Object implements InsertionMode<G,A,R>
Constructor and Description |
---|
AutoInsertionMode(GameObjectMatcher floorGameObjectMatcher,
GameObjectMatcher wallGameObjectMatcher,
GameObjectMatcher belowFloorGameObjectMatcher,
GameObjectMatcher systemObjectGameObjectMatcher)
Initializes the class.
|
Modifier and Type | Method and Description |
---|---|
void |
insert(G gameObject,
MapSquare<G,A,R> mapSquare)
Inserts a
GameObject into a MapSquare . |
java.lang.String |
toString() |
public AutoInsertionMode(@Nullable GameObjectMatcher floorGameObjectMatcher, @Nullable GameObjectMatcher wallGameObjectMatcher, @Nullable GameObjectMatcher belowFloorGameObjectMatcher, @Nullable GameObjectMatcher systemObjectGameObjectMatcher)
floorGameObjectMatcher
- the floor matcher to usewallGameObjectMatcher
- the wall matcher to usebelowFloorGameObjectMatcher
- the game object to insert below the
floorsystemObjectGameObjectMatcher
- matches system objects that should
stay on toppublic void insert(@NotNull G gameObject, @NotNull MapSquare<G,A,R> mapSquare)
GameObject
into a MapSquare
.insert
in interface InsertionMode<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
gameObject
- the game object to insertmapSquare
- the map square to modifypublic java.lang.String toString()
toString
in class java.lang.Object