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(MapViewSettings mapViewSettings,
ObjectChooser<G,A,R> objectChooser,
PickmapSettings pickmapSettings,
GameObjectMatcher floorGameObjectMatcher,
GameObjectMatcher wallGameObjectMatcher,
GameObjectMatcher monsterGameObjectMatcher)
Create a DeletionTool.
|
Modifier and Type | Method and Description |
---|---|
void |
clicked(MouseOpEvent<G,A,R> e)
Mouse was clicked.
|
java.awt.Component |
createOptionsView()
Create a view for changing the options of this tool.
|
void |
dragged(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(MouseOpEvent<G,A,R> e)
Mouse was moved.
|
void |
pressed(MouseOpEvent<G,A,R> e)
Mouse was pressed.
|
void |
released(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.
|
getId
public DeletionTool(@NotNull MapViewSettings mapViewSettings, @NotNull ObjectChooser<G,A,R> objectChooser, @NotNull PickmapSettings pickmapSettings, @Nullable GameObjectMatcher floorGameObjectMatcher, @Nullable GameObjectMatcher wallGameObjectMatcher, @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 MouseOpEvent<G,A,R> e)
e
- the eventpublic void released(@NotNull MouseOpEvent<G,A,R> e)
e
- the eventpublic void clicked(@NotNull MouseOpEvent<G,A,R> e)
e
- the eventpublic void dragged(@NotNull MouseOpEvent<G,A,R> e)
e
- the eventpublic void moved(@NotNull MouseOpEvent<G,A,R> e)
e
- the event@Nullable public java.awt.Component createOptionsView()
null
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