public class DeletionTool<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends BasicAbstractTool<G,A,R>
| Constructor and Description |
|---|
DeletionTool(@NotNull MapViewSettings mapViewSettings,
@NotNull ObjectChooser<G,A,R> objectChooser,
@NotNull PickmapSettings pickmapSettings,
@Nullable GameObjectMatcher floorGameObjectMatcher,
@Nullable GameObjectMatcher wallGameObjectMatcher,
@Nullable GameObjectMatcher monsterGameObjectMatcher)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clicked(@NotNull MouseOpEvent<G,A,R> e)
Mouse was clicked.
|
@Nullable java.awt.Component |
createOptionsView()
Creates a view for changing the options of this tool.
|
void |
dragged(@NotNull MouseOpEvent<G,A,R> e)
Mouse was dragged.
|
boolean |
isDeletionToolExceptionsIgnoreFloors()
Returns whether floors should not be deleted.
|
boolean |
isDeletionToolExceptionsIgnoreMonsters()
Returns whether monsters should not be deleted.
|
boolean |
isDeletionToolExceptionsIgnoreWalls()
Returns whether walls should not be deleted.
|
void |
moved(@NotNull MouseOpEvent<G,A,R> e)
Mouse was moved.
|
void |
pressed(@NotNull MouseOpEvent<G,A,R> e)
Mouse was pressed.
|
void |
released(@NotNull MouseOpEvent<G,A,R> e)
Mouse was released.
|
void |
setDeletionToolExceptionsIgnoreFloors(boolean deletionToolExceptionsIgnoreFloors)
Sets whether floors should not be deleted.
|
void |
setDeletionToolExceptionsIgnoreMonsters(boolean deletionToolExceptionsIgnoreMonsters)
Sets whether monsters should not be deleted.
|
void |
setDeletionToolExceptionsIgnoreWalls(boolean deletionToolExceptionsIgnoreWalls)
Sets whether walls should not be deleted.
|
getIdpublic DeletionTool(@NotNull
@NotNull MapViewSettings mapViewSettings,
@NotNull
@NotNull ObjectChooser<G,A,R> objectChooser,
@NotNull
@NotNull PickmapSettings pickmapSettings,
@Nullable
@Nullable GameObjectMatcher floorGameObjectMatcher,
@Nullable
@Nullable GameObjectMatcher wallGameObjectMatcher,
@Nullable
@Nullable GameObjectMatcher monsterGameObjectMatcher)
mapViewSettings - the map view settings instanceobjectChooser - the object chooser to usepickmapSettings - the pickmap settings to usefloorGameObjectMatcher - the floor matcher to usewallGameObjectMatcher - the wall matcher to usemonsterGameObjectMatcher - the monster matcher to usepublic void pressed(@NotNull
@NotNull MouseOpEvent<G,A,R> e)
MouseOpListenere - the eventpublic void released(@NotNull
@NotNull MouseOpEvent<G,A,R> e)
MouseOpListenere - the eventpublic void clicked(@NotNull
@NotNull MouseOpEvent<G,A,R> e)
MouseOpListenere - the eventpublic void dragged(@NotNull
@NotNull MouseOpEvent<G,A,R> e)
MouseOpListenere - the eventpublic void moved(@NotNull
@NotNull MouseOpEvent<G,A,R> e)
MouseOpListenere - the event@Nullable public @Nullable java.awt.Component createOptionsView()
Toolnull if
this tool hasn't any options@ActionMethod public boolean isDeletionToolExceptionsIgnoreWalls()
@ActionMethod public void setDeletionToolExceptionsIgnoreWalls(boolean deletionToolExceptionsIgnoreWalls)
deletionToolExceptionsIgnoreWalls - whether walls should not be
deleted@ActionMethod public boolean isDeletionToolExceptionsIgnoreFloors()
@ActionMethod public void setDeletionToolExceptionsIgnoreFloors(boolean deletionToolExceptionsIgnoreFloors)
deletionToolExceptionsIgnoreFloors - whether floors should not be
deleted@ActionMethod public boolean isDeletionToolExceptionsIgnoreMonsters()
@ActionMethod public void setDeletionToolExceptionsIgnoreMonsters(boolean deletionToolExceptionsIgnoreMonsters)
deletionToolExceptionsIgnoreMonsters - whether monsters should not
be deleted