![]() |
Gridarta Editor
|
Automatically guess the insertion position. More...
Public Member Functions | |
AutoInsertionMode (@Nullable final GameObjectMatcher floorGameObjectMatcher, @Nullable final GameObjectMatcher wallGameObjectMatcher, @Nullable final GameObjectMatcher belowFloorGameObjectMatcher, @Nullable final GameObjectMatcher systemObjectGameObjectMatcher) | |
Initializes the class. More... | |
String | toString () |
Package Functions | |
public< G extends GameObject< G, A, R >, A extends MapArchObject< A >, R extends Archetype< G, A, R > > void | insert (@NotNull final G gameObject, @NotNull final MapSquare< G, A, R > mapSquare) |
private< G extends GameObject< G, A, R >, A extends MapArchObject< A >, R extends Archetype< G, A, R > > void | replaceFloor (@NotNull final G gameObject, @NotNull final MapSquare< G, A, R > mapSquare, @Nullable final G lastFloor) |
Replace a floor game object. More... | |
Static Package Functions | |
static< G extends GameObject< G, A, R > A extends R extends Archetype< G, A, R > void | insertNonSystemObject (@NotNull final G gameObject, @NotNull final GameObjectContainer< G, A, R > mapSquare, @Nullable final G firstSystemObject) |
static< G extends GameObject< G, A, R > A extends R extends Archetype< G, A, R > boolean | replaceWall (@NotNull final G gameObject, @NotNull final GameObjectContainer< G, A, R > mapSquare, @Nullable final G lastWall) |
Private Attributes | |
final GameObjectMatcher | belowFloorGameObjectMatcher |
A GameObjectMatcher matching monster game objects. More... | |
final GameObjectMatcher | floorGameObjectMatcher |
A GameObjectMatcher matching floor game objects. More... | |
final GameObjectMatcher | systemObjectGameObjectMatcher |
A GameObjectMatcher matching system objects that should stay on top. More... | |
final GameObjectMatcher | wallGameObjectMatcher |
A GameObjectMatcher matching wall game objects. More... | |
Static Private Attributes | |
static< G extends GameObject< G, A, R > A extends | MapArchObject< A > |
static final long | serialVersionUID = 1L |
The serial version UID. More... | |
Additional Inherited Members | |
![]() | |
< G extends GameObject< G, A, R > A extends | MapArchObject< A > |
Automatically guess the insertion position.
May replace rather than insert the object.
Definition at line 35 of file AutoInsertionMode.java.
net.sf.gridarta.model.mapmodel.AutoInsertionMode.AutoInsertionMode | ( | @Nullable final GameObjectMatcher | floorGameObjectMatcher, |
@Nullable final GameObjectMatcher | wallGameObjectMatcher, | ||
@Nullable final GameObjectMatcher | belowFloorGameObjectMatcher, | ||
@Nullable final GameObjectMatcher | systemObjectGameObjectMatcher | ||
) |
Initializes the class.
floorGameObjectMatcher | the floor matcher to use |
wallGameObjectMatcher | the wall matcher to use |
belowFloorGameObjectMatcher | the game object to insert below the floor |
systemObjectGameObjectMatcher | matches system objects that should stay on top |
Definition at line 80 of file AutoInsertionMode.java.
References net.sf.gridarta.model.mapmodel.AutoInsertionMode.belowFloorGameObjectMatcher, net.sf.gridarta.model.mapmodel.AutoInsertionMode.floorGameObjectMatcher, net.sf.gridarta.model.mapmodel.AutoInsertionMode.systemObjectGameObjectMatcher, and net.sf.gridarta.model.mapmodel.AutoInsertionMode.wallGameObjectMatcher.
|
package |
Implements net.sf.gridarta.model.mapmodel.InsertionMode.
Definition at line 88 of file AutoInsertionMode.java.
References net.sf.gridarta.model.mapmodel.AutoInsertionMode.belowFloorGameObjectMatcher, net.sf.gridarta.model.mapmodel.AutoInsertionMode.floorGameObjectMatcher, net.sf.gridarta.model.mapmodel.AutoInsertionMode.insertNonSystemObject(), net.sf.gridarta.model.match.GameObjectMatcher.isMatching(), net.sf.gridarta.model.mapmodel.AutoInsertionMode.replaceFloor(), net.sf.gridarta.model.mapmodel.AutoInsertionMode.replaceWall(), net.sf.gridarta.model.mapmodel.AutoInsertionMode.systemObjectGameObjectMatcher, and net.sf.gridarta.model.mapmodel.AutoInsertionMode.wallGameObjectMatcher.
|
staticpackage |
Definition at line 164 of file AutoInsertionMode.java.
Referenced by net.sf.gridarta.model.mapmodel.AutoInsertionMode.insert().
|
package |
Replace a floor game object.
gameObject | the game object to insert with |
mapSquare | the map square to modify |
lastFloor | the last floor game object within mapSquare
|
<G> | the game object type of the object |
<A> | the map arch object type of the object |
<R> | the archetype type of the object |
Definition at line 115 of file AutoInsertionMode.java.
References net.sf.gridarta.model.mapmodel.AutoInsertionMode.belowFloorGameObjectMatcher.
Referenced by net.sf.gridarta.model.mapmodel.AutoInsertionMode.insert().
|
staticpackage |
Definition at line 145 of file AutoInsertionMode.java.
Referenced by net.sf.gridarta.model.mapmodel.AutoInsertionMode.insert().
String net.sf.gridarta.model.mapmodel.AutoInsertionMode.toString | ( | ) |
Definition at line 102 of file AutoInsertionMode.java.
|
private |
A GameObjectMatcher matching monster game objects.
@serial
Definition at line 61 of file AutoInsertionMode.java.
Referenced by net.sf.gridarta.model.mapmodel.AutoInsertionMode.AutoInsertionMode(), net.sf.gridarta.model.mapmodel.AutoInsertionMode.insert(), and net.sf.gridarta.model.mapmodel.AutoInsertionMode.replaceFloor().
|
private |
A GameObjectMatcher matching floor game objects.
@serial
Definition at line 47 of file AutoInsertionMode.java.
Referenced by net.sf.gridarta.model.mapmodel.AutoInsertionMode.AutoInsertionMode(), and net.sf.gridarta.model.mapmodel.AutoInsertionMode.insert().
|
staticprivate |
Definition at line 145 of file AutoInsertionMode.java.
|
staticprivate |
The serial version UID.
Definition at line 40 of file AutoInsertionMode.java.
|
private |
A GameObjectMatcher matching system objects that should stay on top.
@serial
Definition at line 69 of file AutoInsertionMode.java.
Referenced by net.sf.gridarta.model.mapmodel.AutoInsertionMode.AutoInsertionMode(), and net.sf.gridarta.model.mapmodel.AutoInsertionMode.insert().
|
private |
A GameObjectMatcher matching wall game objects.
@serial
Definition at line 54 of file AutoInsertionMode.java.
Referenced by net.sf.gridarta.model.mapmodel.AutoInsertionMode.AutoInsertionMode(), and net.sf.gridarta.model.mapmodel.AutoInsertionMode.insert().