public class ExitConnectorActions<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
ExitConnectorModels
.Constructor and Description |
---|
ExitConnectorActions(@NotNull ExitConnectorModel exitConnectorModel,
@NotNull ExitMatcher<G,A,R> exitMatcher,
@NotNull ArchetypeSet<G,A,R> archetypeSet,
@NotNull MapManager<G,A,R> mapManager,
@NotNull FileControl<G,A,R> fileControl,
@NotNull InsertionModeSet<G,A,R> insertionModeSet)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doExitConnect(boolean performAction,
@NotNull MapControl<G,A,R> mapControl,
@NotNull java.awt.Point targetLocation)
Executes the "exit connect" action.
|
boolean |
doExitCopy(boolean performAction,
@NotNull MapControl<G,A,R> mapControl,
@NotNull java.awt.Point location)
Executes the "exit copy" action.
|
boolean |
doExitPaste(boolean performAction,
@NotNull MapControl<G,A,R> mapControl,
@NotNull java.awt.Point targetLocation)
Executes the "exit paste" action.
|
public ExitConnectorActions(@NotNull @NotNull ExitConnectorModel exitConnectorModel, @NotNull @NotNull ExitMatcher<G,A,R> exitMatcher, @NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull @NotNull MapManager<G,A,R> mapManager, @NotNull @NotNull FileControl<G,A,R> fileControl, @NotNull @NotNull InsertionModeSet<G,A,R> insertionModeSet)
exitConnectorModel
- the exit connector model to useexitMatcher
- the exit matcher to usearchetypeSet
- the archetype set to usemapManager
- the map manager for loading mapsfileControl
- the file control to useinsertionModeSet
- the insertion mode set to usepublic boolean doExitCopy(boolean performAction, @NotNull @NotNull MapControl<G,A,R> mapControl, @NotNull @NotNull java.awt.Point location)
performAction
- whether the action should be performedmapControl
- the map control to copy fromlocation
- the cursor locationpublic boolean doExitPaste(boolean performAction, @NotNull @NotNull MapControl<G,A,R> mapControl, @NotNull @NotNull java.awt.Point targetLocation)
performAction
- whether the action should be performedmapControl
- the map control to paste intotargetLocation
- the target location to paste topublic boolean doExitConnect(boolean performAction, @NotNull @NotNull MapControl<G,A,R> mapControl, @NotNull @NotNull java.awt.Point targetLocation)
performAction
- whether the action should be performedmapControl
- the map control to connect withtargetLocation
- the target location to connect