Package net.sf.gridarta.actions
Class ExitConnectorActions<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.actions.ExitConnectorActions<G,A,R>
-
public class ExitConnectorActions<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectUtility class implementing actions that operate onExitConnectorModels.
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoExitConnect(boolean performAction, @NotNull MapControl<G,A,R> mapControl, @NotNull java.awt.Point targetLocation)Executes the "exit connect" action.booleandoExitCopy(boolean performAction, @NotNull MapControl<G,A,R> mapControl, @NotNull java.awt.Point location)Executes the "exit copy" action.booleandoExitPaste(boolean performAction, @NotNull MapControl<G,A,R> mapControl, @NotNull java.awt.Point targetLocation)Executes the "exit paste" action.
-
-
-
Constructor Detail
-
ExitConnectorActions
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)Creates a new instance.- Parameters:
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 use
-
-
Method Detail
-
doExitCopy
public boolean doExitCopy(boolean performAction, @NotNull @NotNull MapControl<G,A,R> mapControl, @NotNull @NotNull java.awt.Point location)Executes the "exit copy" action.- Parameters:
performAction- whether the action should be performedmapControl- the map control to copy fromlocation- the cursor location- Returns:
- whether the action was or can be performed
-
doExitPaste
public boolean doExitPaste(boolean performAction, @NotNull @NotNull MapControl<G,A,R> mapControl, @NotNull @NotNull java.awt.Point targetLocation)Executes the "exit paste" action.- Parameters:
performAction- whether the action should be performedmapControl- the map control to paste intotargetLocation- the target location to paste to- Returns:
- whether the action was or can be performed
-
doExitConnect
public boolean doExitConnect(boolean performAction, @NotNull @NotNull MapControl<G,A,R> mapControl, @NotNull @NotNull java.awt.Point targetLocation)Executes the "exit connect" action.- Parameters:
performAction- whether the action should be performedmapControl- the map control to connect withtargetLocation- the target location to connect- Returns:
- whether the action was or can be performed
-
-