Gridarta Editor
|
Public Member Functions | |
boolean | doExitConnect (final boolean performAction, @NotNull final MapControl< G, A, R > mapControl, @NotNull final Point targetLocation) |
boolean | doExitCopy (final boolean performAction, @NotNull final MapControl< G, A, R > mapControl, @NotNull final Point location) |
boolean | doExitPaste (final boolean performAction, @NotNull final MapControl< G, A, R > mapControl, @NotNull final Point targetLocation) |
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) | |
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) |
void | pasteExit (@NotNull final BaseObject<?, ?, ?, ?> gameObject, @NotNull final MapModel< G, A, R > mapModel, @NotNull final ExitLocation exitLocation, @Nullable final MapFile gameObjectMapFile) |
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) |
Private Attributes | |
final ArchetypeSet< G, A, R > | archetypeSet |
final ExitConnectorModel | exitConnectorModel |
final ExitMatcher< G, A, R > | exitMatcher |
final FileControl< G, A, R > | fileControl |
final InsertionModeSet< G, A, R > | insertionModeSet |
final MapManager< G, A, R > | mapManager |
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.gui.exitconnector.ExitConnectorController< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doExitConnect(), net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitConnect(), net.sf.gridarta.actions.ExitConnectorActionsTest.testExitConnect1(), and net.sf.gridarta.actions.ExitConnectorActionsTest.testExitConnectAuto1().
|
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().
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().
|
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().
|
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 >.doExitConnect(), net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitPaste(), and 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 >.doExitConnect(), net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitCopy(), net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitPaste(), net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.ExitConnectorActions(), and net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.pasteExit().
|
private |
The ExitMatcher to use.
Definition at line 59 of file ExitConnectorActions.java.
Referenced by net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitConnect(), net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitPaste(), and 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 >.doExitConnect(), and 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(), and net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.pasteExit().
|
private |
The MapManager for loading maps.
Definition at line 71 of file ExitConnectorActions.java.
Referenced by net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.doExitConnect(), and net.sf.gridarta.actions.ExitConnectorActions< G, A, R >.ExitConnectorActions().