public class AutoInsertionMode extends java.lang.Object implements InsertionMode
| Constructor and Description |
|---|
AutoInsertionMode(@Nullable GameObjectMatcher floorGameObjectMatcher,
@Nullable GameObjectMatcher wallGameObjectMatcher,
@Nullable GameObjectMatcher belowFloorGameObjectMatcher,
@Nullable GameObjectMatcher systemObjectGameObjectMatcher)
Initializes the class.
|
| Modifier and Type | Method and Description |
|---|---|
<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> |
insert(G gameObject,
@NotNull MapSquare<G,A,R> mapSquare)
Inserts a
GameObject into a MapSquare. |
java.lang.String |
toString() |
public AutoInsertionMode(@Nullable
@Nullable GameObjectMatcher floorGameObjectMatcher,
@Nullable
@Nullable GameObjectMatcher wallGameObjectMatcher,
@Nullable
@Nullable GameObjectMatcher belowFloorGameObjectMatcher,
@Nullable
@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 <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> void insert(@NotNull G gameObject, @NotNull @NotNull MapSquare<G,A,R> mapSquare)
InsertionModeGameObject into a MapSquare.insert in interface InsertionModeG - the game object type of the objectA - the map arch object type of the objectR - the archetype type of the objectgameObject - the game object to insertmapSquare - the map square to modifypublic java.lang.String toString()
toString in class java.lang.Object