Class ExitConnectorActions<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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
    • 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 performed
        mapControl - the map control to copy from
        location - 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 performed
        mapControl - the map control to paste into
        targetLocation - 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 performed
        mapControl - the map control to connect with
        targetLocation - the target location to connect
        Returns:
        whether the action was or can be performed