|
Gridarta Editor
|
Utility class implementing actions that operate on ExitConnectorModels. More...
Inheritance diagram for net.sf.gridarta.actions.ExitConnectorActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.actions.ExitConnectorActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| boolean | doExitConnect (final boolean performAction, @NotNull final MapControl< G, A, R > mapControl, @NotNull final Point targetLocation) |
| Executes the "exit connect" action. More... | |
| boolean | doExitCopy (final boolean performAction, @NotNull final MapControl< G, A, R > mapControl, @NotNull final Point location) |
| Executes the "exit copy" action. More... | |
| boolean | doExitPaste (final boolean performAction, @NotNull final MapControl< G, A, R > mapControl, @NotNull final Point targetLocation) |
| Executes the "exit paste" action. More... | |
| ExitConnectorActions (@NotNull final ExitConnectorModel exitConnectorModel, @NotNull final ExitMatcher< G, A, R > exitMatcher, @NotNull final ArchetypeSet< G, A, R > archetypeSet, @NotNull final MapManager< G, A, R > mapManager, @NotNull final FileControl< G, A, R > fileControl, @NotNull final InsertionModeSet< G, A, R > insertionModeSet) | |
| Creates a new instance. More... | |
Private Member Functions | |
| boolean | doExitConnect (final boolean performAction, @Nullable final BaseObject<?, ?, ?, ?> targetExit, @Nullable final BaseObject< G, A, R, ?> targetArchetype, @NotNull final MapModel< G, A, R > targetMapModel, @NotNull final Point targetLocation, @NotNull final MapFile targetMapFile, @NotNull final MapModel< G, A, R > sourceMapModel, @NotNull final ExitLocation sourceExitLocation) |
| Executes part of the "exit connect" action. More... | |
| void | pasteExit (@NotNull final BaseObject<?, ?, ?, ?> gameObject, @NotNull final MapModel< G, A, R > mapModel, @NotNull final ExitLocation exitLocation, @Nullable final MapFile gameObjectMapFile) |
| Pastes exit information into an exit game object. More... | |
| boolean | pasteExit (@NotNull final Point location, @NotNull final MapModel< G, A, R > mapModel, @NotNull final BaseObject< G, A, R, ?> archetype, @NotNull final ExitLocation exitLocation, @Nullable final MapFile mapFile) |
| Creates a new exit game object. More... | |
Private Attributes | |
| final ArchetypeSet< G, A, R > | archetypeSet |
| The ArchetypeSet to use. More... | |
| final ExitConnectorModel | exitConnectorModel |
| The ExitConnectorModel to use. More... | |
| final ExitMatcher< G, A, R > | exitMatcher |
| The ExitMatcher to use. More... | |
| final FileControl< G, A, R > | fileControl |
| The FileControl to use. More... | |
| final InsertionModeSet< G, A, R > | insertionModeSet |
| The InsertionModeSet to use. More... | |
| final MapManager< G, A, R > | mapManager |
| The MapManager for loading maps. More... | |
Utility class implementing actions that operate on ExitConnectorModels.
Definition at line 47 of file ExitConnectorActions.java.
| net.sf.gridarta.actions.ExitConnectorActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.ExitConnectorActions | ( | @NotNull final ExitConnectorModel | exitConnectorModel, |
| @NotNull final ExitMatcher< G, A, R > | exitMatcher, | ||
| @NotNull final ArchetypeSet< G, A, R > | archetypeSet, | ||
| @NotNull final MapManager< G, A, R > | mapManager, | ||
| @NotNull final FileControl< G, A, R > | fileControl, | ||
| @NotNull final InsertionModeSet< G, A, R > | insertionModeSet | ||
| ) |
Creates a new instance.
| exitConnectorModel | the exit connector model to use |
| exitMatcher | the exit matcher to use |
| archetypeSet | the archetype set to use |
| mapManager | the map manager for loading maps |
| fileControl | the file control to use |
| insertionModeSet | the insertion mode set to use |
Definition at line 94 of file ExitConnectorActions.java.
| boolean net.sf.gridarta.actions.ExitConnectorActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doExitConnect | ( | final boolean | performAction, |
| @NotNull final MapControl< G, A, R > | mapControl, | ||
| @NotNull final Point | targetLocation | ||
| ) |
Executes the "exit connect" action.
| performAction | whether the action should be performed |
| mapControl | the map control to connect with |
| targetLocation | the target location to connect |
Definition at line 189 of file ExitConnectorActions.java.
Referenced by net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitConnect(), net.sf.gridarta.gui.exitconnector.ExitConnectorController< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doExitConnect(), net.sf.gridarta.actions.ExitConnectorActionsTest.testExitConnect1(), and net.sf.gridarta.actions.ExitConnectorActionsTest.testExitConnectAuto1().
Here is the caller graph for this function:
|
private |
Executes part of the "exit connect" action.
| performAction | whether the action should be performed |
| targetExit | the target exit game object or null |
| targetArchetype | the target exit archetype; null targetExit null |
| targetMapModel | the target's map model |
| targetLocation | the target's coordinates |
| targetMapFile | the target's file |
| sourceMapModel | the source's map model |
| sourceExitLocation | the source's exit location |
Definition at line 263 of file ExitConnectorActions.java.
| boolean net.sf.gridarta.actions.ExitConnectorActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doExitCopy | ( | final boolean | performAction, |
| @NotNull final MapControl< G, A, R > | mapControl, | ||
| @NotNull final Point | location | ||
| ) |
Executes the "exit copy" action.
| performAction | whether the action should be performed |
| mapControl | the map control to copy from |
| location | the cursor location |
Definition at line 110 of file ExitConnectorActions.java.
Referenced by net.sf.gridarta.gui.exitconnector.ExitConnectorController< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doExitCopy(), net.sf.gridarta.actions.ExitConnectorActionsTest.testExitCopy1(), and net.sf.gridarta.actions.ExitConnectorActionsTest.testExitPaste2().
Here is the caller graph for this function:| boolean net.sf.gridarta.actions.ExitConnectorActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doExitPaste | ( | final boolean | performAction, |
| @NotNull final MapControl< G, A, R > | mapControl, | ||
| @NotNull final Point | targetLocation | ||
| ) |
Executes the "exit paste" action.
| performAction | whether the action should be performed |
| mapControl | the map control to paste into |
| targetLocation | the target location to paste to |
Definition at line 133 of file ExitConnectorActions.java.
Referenced by net.sf.gridarta.gui.exitconnector.ExitConnectorController< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doExitPaste(), net.sf.gridarta.actions.ExitConnectorActionsTest.testExitPaste1(), net.sf.gridarta.actions.ExitConnectorActionsTest.testExitPaste2(), and net.sf.gridarta.actions.ExitConnectorActionsTest.testPath().
Here is the caller graph for this function:
|
private |
Pastes exit information into an exit game object.
| gameObject | the exit game object to paste into |
| mapModel | the map model to paste into |
| exitLocation | the exit information to paste |
| gameObjectMapFile | the map file of gameObject null |
Definition at line 320 of file ExitConnectorActions.java.
Referenced by net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitConnect(), and net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitPaste().
Here is the caller graph for this function:
|
private |
Creates a new exit game object.
| location | the location to insert into |
| mapModel | the map model to insert into |
| archetype | the archetype to insert |
| exitLocation | the exit information to use |
| mapFile | the map file to insert into or null |
Definition at line 339 of file ExitConnectorActions.java.
|
private |
The ArchetypeSet to use.
Definition at line 65 of file ExitConnectorActions.java.
Referenced by net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.ExitConnectorActions().
|
private |
The ExitConnectorModel to use.
Definition at line 53 of file ExitConnectorActions.java.
Referenced by net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.ExitConnectorActions().
|
private |
The ExitMatcher to use.
Definition at line 59 of file ExitConnectorActions.java.
Referenced by net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.ExitConnectorActions().
|
private |
The FileControl to use.
Definition at line 77 of file ExitConnectorActions.java.
Referenced by net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.ExitConnectorActions().
|
private |
The InsertionModeSet to use.
Definition at line 83 of file ExitConnectorActions.java.
Referenced by net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.ExitConnectorActions().
|
private |
The MapManager for loading maps.
Definition at line 71 of file ExitConnectorActions.java.
Referenced by net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.ExitConnectorActions().