|
Gridarta Editor
|
Automatically guess the insertion position. More...
Inheritance diagram for net.sf.gridarta.model.mapmodel.AutoInsertionMode< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.model.mapmodel.AutoInsertionMode< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| AutoInsertionMode (@Nullable final GameObjectMatcher floorGameObjectMatcher, @Nullable final GameObjectMatcher wallGameObjectMatcher, @Nullable final GameObjectMatcher belowFloorGameObjectMatcher, @Nullable final GameObjectMatcher systemObjectGameObjectMatcher) | |
| Initializes the class. More... | |
| void | insert (@NotNull final G gameObject, @NotNull final MapSquare< G, A, R > mapSquare) |
| String | toString () |
Public Member Functions inherited from net.sf.gridarta.model.mapmodel.InsertionMode< G, A, R > | |
| void | insert ( @NotNull G gameObject, @NotNull MapSquare< G, A, R > mapSquare) |
| Inserts a GameObject into a MapSquare. More... | |
Private Member Functions | |
| void | insertNonSystemObject (@NotNull final G gameObject, @NotNull final GameObjectContainer< G, A, R > mapSquare, @Nullable final G firstSystemObject) |
| Inserts a non-system game object. More... | |
| void | replaceFloor (@NotNull final G gameObject, @NotNull final MapSquare< G, A, R > mapSquare, @Nullable final G lastFloor) |
| Replace a floor game object. More... | |
| boolean | replaceWall (@NotNull final G gameObject, @NotNull final GameObjectContainer< G, A, R > mapSquare, @Nullable final G lastWall) |
| Replaces a wall game object. More... | |
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 final long | serialVersionUID = 1L |
| The serial version UID. More... | |
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< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.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< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.belowFloorGameObjectMatcher, net.sf.gridarta.model.mapmodel.AutoInsertionMode< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.floorGameObjectMatcher, net.sf.gridarta.model.mapmodel.AutoInsertionMode< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.systemObjectGameObjectMatcher, and net.sf.gridarta.model.mapmodel.AutoInsertionMode< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.wallGameObjectMatcher.
| void net.sf.gridarta.model.mapmodel.AutoInsertionMode< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.insert | ( | @NotNull final G | gameObject, |
| @NotNull final MapSquare< G, A, R > | mapSquare | ||
| ) |
Definition at line 88 of file AutoInsertionMode.java.
References net.sf.gridarta.model.mapmodel.AutoInsertionMode< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.insertNonSystemObject(), net.sf.gridarta.model.match.GameObjectMatcher.isMatching(), net.sf.gridarta.model.mapmodel.AutoInsertionMode< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.replaceFloor(), and net.sf.gridarta.model.mapmodel.AutoInsertionMode< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.replaceWall().
Here is the call graph for this function:
|
private |
Inserts a non-system game object.
| gameObject | the game object to insert |
| mapSquare | the map square to modify |
| firstSystemObject | the first system game object within mapSquare |
Definition at line 155 of file AutoInsertionMode.java.
Here is the caller graph for this function:
|
private |
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 |
Definition at line 112 of file AutoInsertionMode.java.
Here is the caller graph for this function:
|
private |
Replaces a wall game object.
| gameObject | the game object to insert with |
| mapSquare | the map square to modify |
| lastWall | the last wall game object within mapSquare |
Definition at line 139 of file AutoInsertionMode.java.
Here is the caller graph for this function:| String net.sf.gridarta.model.mapmodel.AutoInsertionMode< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.toString | ( | ) |
Definition at line 102 of file AutoInsertionMode.java.
|
private |
A GameObjectMatcher matching monster game objects.
Definition at line 61 of file AutoInsertionMode.java.
|
private |
A GameObjectMatcher matching floor game objects.
Definition at line 47 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.
Definition at line 69 of file AutoInsertionMode.java.
|
private |
A GameObjectMatcher matching wall game objects.
Definition at line 54 of file AutoInsertionMode.java.