| Enum Constant and Description |
|---|
DO_CLEAR
Clear the selection.
|
DO_COPY
Copy the selection.
|
DO_CUT
Cut the selection.
|
| Modifier and Type | Method and Description |
|---|---|
abstract <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> |
prepare(@NotNull MapModel<G,A,R> mapModel,
@NotNull Size2D mapSize)
Prepares the operation.
|
abstract <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> |
process(@NotNull MapModel<G,A,R> mapModel,
G gameObject,
boolean isEditType,
@NotNull java.util.Collection<G> gameObjectsToDelete,
@NotNull java.awt.Point pos,
@NotNull GameObjectFactory<G,A,R> gameObjectFactory,
@NotNull InsertionModeSet<G,A,R> insertionModeSet)
Processes a
GameObject. |
static CopyMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CopyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CopyMode DO_CLEAR
public static final CopyMode DO_CUT
public static final CopyMode DO_COPY
public static CopyMode[] values()
for (CopyMode c : CopyMode.values()) System.out.println(c);
public static CopyMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic abstract <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> void prepare(@NotNull @NotNull MapModel<G,A,R> mapModel, @NotNull @NotNull Size2D mapSize)
mapModel - the copy buffer's map modelmapSize - the new size of the copy buffer's map modelpublic abstract <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> void process(@NotNull @NotNull MapModel<G,A,R> mapModel, @NotNull G gameObject, boolean isEditType, @NotNull @NotNull java.util.Collection<G> gameObjectsToDelete, @NotNull @NotNull java.awt.Point pos, @NotNull @NotNull GameObjectFactory<G,A,R> gameObjectFactory, @NotNull @NotNull InsertionModeSet<G,A,R> insertionModeSet)
GameObject.mapModel - the copy buffer's map modelgameObject - the game objectisEditType - whether the game object matches the active edit typegameObjectsToDelete - a collection for game objects to delete after
the operation has finishedpos - the current map positiongameObjectFactory - the game object factory to useinsertionModeSet - the insertion mode set to use