Gridarta Editor
|
Public Member Functions | |
void | activeMapViewChanged (@Nullable final MapView< G, A, R > mapView) |
void | mapViewClosing (@NotNull final MapView< G, A, R > mapView) |
void | mapViewCreated (@NotNull final MapView< G, A, R > mapView) |
void | openInClient () |
void | setAction (@NotNull final Action action, @NotNull final String name) |
Protected Member Functions | |
AbstractServerActions (@NotNull final FileControl< G, A, R > fileControl) | |
abstract void | resetMap (@NotNull String mapPath) throws IOException |
abstract void | teleportCharacterToMap (@NotNull String mapPath, int mapX, int mapY) throws IOException |
Private Member Functions | |
boolean | doOpenInClient (final boolean performAction) |
void | updateActions () |
Private Attributes | |
Action | aOpenInClient |
MapView< G, A, R > | currentMapView |
final FileControl< G, A, R > | fileControl |
Actions that require a connection to a game server.
Definition at line 44 of file AbstractServerActions.java.
|
protected |
Creates a new instance.
fileControl | the file control for saving maps |
Definition at line 68 of file AbstractServerActions.java.
void net.sf.gridarta.actions.AbstractServerActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.activeMapViewChanged | ( | @Nullable final MapView< G, A, R > | mapView | ) |
This event handler is called when the current map view has changed.
mapView | the new map view or null
|
Definition at line 150 of file AbstractServerActions.java.
|
private |
Executes the "open in client" action.
performAction | whether the action should be performed |
Definition at line 94 of file AbstractServerActions.java.
Referenced by net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.openInClient(), and net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.updateActions().
void net.sf.gridarta.actions.AbstractServerActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewClosing | ( | @NotNull final MapView< G, A, R > | mapView | ) |
@noinspection NoopMethodInAbstractClass
Definition at line 167 of file AbstractServerActions.java.
void net.sf.gridarta.actions.AbstractServerActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.mapViewCreated | ( | @NotNull final MapView< G, A, R > | mapView | ) |
@noinspection NoopMethodInAbstractClass
Definition at line 159 of file AbstractServerActions.java.
void net.sf.gridarta.actions.AbstractServerActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.openInClient | ( | ) |
Action method for "open in client".
Definition at line 76 of file AbstractServerActions.java.
|
abstractprotected |
Resets a map identified by the given map path.
mapPath | the map path to reset |
IOException | if reset fails |
Reimplemented in net.sf.gridarta.var.atrinik.actions.AtrinikServerActions.
Referenced by net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.doOpenInClient().
void net.sf.gridarta.actions.AbstractServerActions< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setAction | ( | @NotNull final Action | action, |
@NotNull final String | name | ||
) |
Sets the Action instance for this editor action.
action | the action instance |
name | the name of the action |
Implements net.sf.gridarta.utils.EditorAction.
Definition at line 144 of file AbstractServerActions.java.
|
abstractprotected |
Teleports the character to the given map path.
mapPath | the map path to teleport to |
mapX | the x coordinate to teleport to |
mapY | the y coordinate to teleport to |
IOException | if teleportation fails |
Reimplemented in net.sf.gridarta.var.atrinik.actions.AtrinikServerActions.
Referenced by net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.doOpenInClient().
|
private |
Update the enabled/disabled state of all actions.
Definition at line 83 of file AbstractServerActions.java.
Referenced by net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.activeMapViewChanged(), and net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.setAction().
|
private |
The action for "open in client".
Definition at line 62 of file AbstractServerActions.java.
Referenced by net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.setAction(), and net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.updateActions().
|
private |
The currently active map or
if no map is active.
Definition at line 50 of file AbstractServerActions.java.
Referenced by net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.activeMapViewChanged(), and net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.doOpenInClient().
|
private |
The file control for saving maps.
Definition at line 56 of file AbstractServerActions.java.
Referenced by net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.AbstractServerActions(), net.sf.gridarta.var.atrinik.actions.AtrinikServerActions.AtrinikServerActions(), and net.sf.gridarta.actions.AbstractServerActions< GameObject, MapArchObject, Archetype >.doOpenInClient().