|
Gridarta Editor
|
Base implementation of MapArchObject that covers similarities between Crossfire maps and Daimonin maps. More...
Inheritance diagram for net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >:
Collaboration diagram for net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >:Public Member Functions | |
| void | addMapArchObjectListener (@NotNull final MapArchObjectListener listener) |
| Registers an event listener. More... | |
| void | addText (@NotNull final String text) |
| Appends 'text' to the map text. More... | |
| void | beginTransaction () |
| Starts a new transaction. More... | |
| String | calculateTilePath (@NotNull final Direction direction, @Nullable final MapFile mapFile) |
| Calculate a single tile path in a particular direction. More... | |
| void | calculateTilePaths (@Nullable final MapFile mapFile, @NotNull final File mapsDirectory) |
| Calculates tiled paths for the map automatically. More... | |
| void | endTransaction () |
| Ends a transaction. More... | |
| void | endTransaction (final boolean fireEvent) |
| Ends a transaction. More... | |
| boolean | equals (@Nullable final Object obj) |
| int | getDarkness () |
| Returns the light / darkness of this map. More... | |
| int | getDifficulty () |
| Returns the map's difficulty. More... | |
| Point | getEnter () |
| Returns the enter coordinates. More... | |
| int | getEnterX () |
| Returns the enter x coordinate. More... | |
| int | getEnterY () |
| Returns the enter y coordinate. More... | |
| String | getMapName () |
| Returns the map name. More... | |
| Size2D | getMapSize () |
| Returns the map size. More... | |
| int | getResetTimeout () |
| Returns the reset timeout (in seconds). More... | |
| int | getSwapTime () |
| Returns the swap time (in ticks). More... | |
| String | getText () |
| Returns the message text. More... | |
| String | getTilePath (@NotNull final Direction direction) |
| Returns a tile path. More... | |
| int | getTilePaths () |
| Returns the number of tile paths. More... | |
| int | hashCode () |
| boolean | isFixedReset () |
| Returns whether this map uses a fixed reset. More... | |
| boolean | isOutdoor () |
| Returns whether the map is an "outdoor" map. More... | |
| boolean | isPointValid (@Nullable final Point pos) |
| Checks whether the given coordinate is within map bounds. More... | |
| boolean | isTilePathAuto (@NotNull final Direction direction, @Nullable final MapFile mapFile) |
| Determines whether a tiled map in the specified direction is automatic tiled path or not. More... | |
| void | removeMapArchObjectListener (@NotNull final MapArchObjectListener listener) |
| Unregisters an event listener. More... | |
| void | setDarkness (final int darkness) |
| Sets the light / darkness of this map. More... | |
| void | setDifficulty (final int difficulty) |
| Sets the map's difficulty. More... | |
| void | setEnterX (final int enterX) |
| Sets the enter x coordinate. More... | |
| void | setEnterY (final int enterY) |
| Sets the enter y coordinate. More... | |
| void | setFixedReset (final boolean fixedReset) |
| Sets whether this map uses a fixed reset. More... | |
| void | setMapName (@NotNull final String name) |
| Sets the map name. More... | |
| void | setMapSize (@NotNull final Size2D mapSize) |
| Sets the map size. More... | |
| void | setOutdoor (final boolean outdoor) |
| Sets whether the map is an "outdoor" map. More... | |
| void | setResetTimeout (final int resetTimeout) |
| Sets the reset timeout (in seconds). More... | |
| void | setState (@NotNull final A mapArchObject) |
| Resets the state of this object to the state of the given map arch object. More... | |
| void | setSwapTime (final int swapTime) |
| Sets the swap time (in ticks). More... | |
| void | setText (final String text) |
| Sets the map text. More... | |
| void | setTilePath (@NotNull final Direction direction, @NotNull final String tilePath) |
| Sets a tile path. More... | |
| void | updateModifiedAttribute (@NotNull final String userName) |
| Updates the "Modified:" attribute in the message text. More... | |
Public Member Functions inherited from net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A > | |
| A | createClone () |
| Creates a copy of this object. More... | |
Static Public Attributes | |
| static final String | MAP_NAME_UNNAMED = "<unnamed>" |
| The name of an unnamed map. More... | |
Protected Member Functions | |
| AbstractMapArchObject () | |
| Creates a new instance. More... | |
| AbstractMapArchObject (@NotNull final AbstractMapArchObject< A > mapArchObject) | |
| Creates a new instance as a copy of another map arch object. More... | |
| abstract A | getThis () |
| Returns this map arch object cast to its real type. More... | |
| void | setModified () |
| Marks this map arch object as changed. More... | |
Private Member Functions | |
| void | commitTransaction () |
| Performs ending a transaction. More... | |
| void | fireMetaChangedEvent () |
| Fires a MapMetaChangedEvent. More... | |
Private Attributes | |
| boolean | attributeHasChanged |
| Set if any attribute has changed inside the current transaction. More... | |
| int | darkness |
| The light / darkness of map (overall). More... | |
| int | difficulty |
| The map difficulty. More... | |
| int | enterX |
| The x coordinate for entering the map. More... | |
| int | enterY |
| The y coordinate for entering the map. More... | |
| boolean | fixedReset |
| If nonzero, the map reset time will not be updated when someone enters / exits the map. More... | |
| final EventListenerList2< MapArchObjectListener > | listenerList = new EventListenerList2<>(MapArchObjectListener.class) |
| The registered event listeners. More... | |
| String | mapName |
| The name of this map. More... | |
| Size2D | mapSize |
| The size of the map reflected by this map arch object. More... | |
| final StringBuilder | msgText = new StringBuilder() |
| The map text. More... | |
| boolean | outdoor |
| If set, this is an outdoor map. More... | |
| int | resetTimeout |
| The number of ticks that need to elapse before this map will be reset. More... | |
| int | swapTime |
| The number of ticks that must elapse after tha map has not been used before it gets swapped out. More... | |
| final String [] | tilePaths |
| The map tile paths used for map tiling. More... | |
| int | transactionDepth |
| The transaction depth. More... | |
| transient Thread | transactionThread |
| The thread that performs the current transaction. More... | |
Static Private Attributes | |
| static final Pattern | MAP_FILE_NAME_PATTERN = Pattern.compile("((?:(?!_(?:[\\d-]+))[\\w_])+)_([\\d-]+)_([\\d-]+)(?:_([\\d-]+))?") |
| The pattern used to determine the base map name and its x/y/z coordinates from a filename. More... | |
| static final String | MODIFIED_ATTRIBUTE = "Modified:" |
| The prefix for the map attribute that is updated with the last modification timestamp. More... | |
| static final Pattern | MODIFIED_ATTRIBUTE_PATTERN = Pattern.compile("^" + MODIFIED_ATTRIBUTE + " *(.*)$", Pattern.MULTILINE) |
| The pattern to find the MODIFIED_ATTRIBUTE in the message text. More... | |
| static final long | serialVersionUID = 1L |
| The serial version UID. More... | |
Base implementation of MapArchObject that covers similarities between Crossfire maps and Daimonin maps.
Definition at line 45 of file AbstractMapArchObject.java.
|
protected |
Creates a new instance.
Definition at line 175 of file AbstractMapArchObject.java.
|
protected |
Creates a new instance as a copy of another map arch object.
| mapArchObject | the other map arch object |
Definition at line 186 of file AbstractMapArchObject.java.
| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.addMapArchObjectListener | ( | @NotNull final MapArchObjectListener | listener | ) |
Registers an event listener.
| listener | the listener to register |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 477 of file AbstractMapArchObject.java.
| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.addText | ( | @NotNull final String | text | ) |
Appends 'text' to the map text.
| text | the string to add |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 553 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.atrinik.model.maparchobject.DefaultMapArchObjectFactory.newMapArchObject(), net.sf.gridarta.var.daimonin.model.maparchobject.DefaultMapArchObjectFactory.newMapArchObject(), and net.sf.gridarta.var.crossfire.model.maparchobject.DefaultMapArchObjectFactory.newMapArchObject().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.beginTransaction | ( | ) |
Starts a new transaction.
Transactions may be nested. Transactions serve the purpose of firing events to the views when more changes are known to come before the view is really required to update. Each invocation of this function requires its own invocation of endTransaction().
Beginning a nested transaction is a cheap operation.
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 495 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), and net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties().
Here is the caller graph for this function:| String net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.calculateTilePath | ( | @NotNull final Direction | direction, |
| @Nullable final MapFile | mapFile | ||
| ) |
Calculate a single tile path in a particular direction.
| direction | the direction |
| mapFile | map file |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 386 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.calculateTilePaths(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.isTilePathAuto().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.calculateTilePaths | ( | @Nullable final MapFile | mapFile, |
| @NotNull final File | mapsDirectory | ||
| ) |
Calculates tiled paths for the map automatically.
| mapFile | map file |
| mapsDirectory | maps directory |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 410 of file AbstractMapArchObject.java.
|
private |
Performs ending a transaction.
Resets all transaction states and fires an event.
Definition at line 534 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.endTransaction().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.endTransaction | ( | ) |
Ends a transaction.
Invoking this method will reduce the transaction depth by only 1.
Ending a nested operation is a cheap operation. Ending a transaction without changes also is a cheap operation.
If the last transaction is ended, the changes are committed.
Same as endTransaction(false).
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 510 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.endTransaction(), net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), and net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.endTransaction | ( | final boolean | fireEvent | ) |
Ends a transaction.
Invoking this method will reduce the transaction depth by only 1.
Ending a nested operation is a cheap operation. Ending a transaction without changes also is a cheap operation.
If the last transaction is ended, the changes are committed.
An example where setting
to
is useful even though the outermost transaction is not ended is when during painting the UI should be updated though painting is not finished.
| fireEvent |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 515 of file AbstractMapArchObject.java.
| boolean net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.equals | ( | @Nullable final Object | obj | ) |
Definition at line 460 of file AbstractMapArchObject.java.
|
private |
Fires a MapMetaChangedEvent.
Definition at line 546 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.commitTransaction(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.endTransaction().
Here is the caller graph for this function:| int net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.getDarkness | ( | ) |
Returns the light / darkness of this map.
(0 means fully bright)
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 349 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), and net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties().
Here is the caller graph for this function:| int net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.getDifficulty | ( | ) |
Returns the map's difficulty.
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 319 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), and net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties().
Here is the caller graph for this function:| Point net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.getEnter | ( | ) |
Returns the enter coordinates.
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 269 of file AbstractMapArchObject.java.
| int net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.getEnterX | ( | ) |
Returns the enter x coordinate.
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 238 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), and net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties().
Here is the caller graph for this function:| int net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.getEnterY | ( | ) |
Returns the enter y coordinate.
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 253 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), and net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties().
Here is the caller graph for this function:| String net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.getMapName | ( | ) |
Returns the map name.
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 222 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObjectTest.testParseMapArchNoAttributes(), and net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObjectTest.testParseMapArchNoAttributes().
Here is the caller graph for this function:| Size2D net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.getMapSize | ( | ) |
Returns the map size.
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 203 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObjectTest.testParseMapArchNoAttributes(), and net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObjectTest.testParseMapArchNoAttributes().
Here is the caller graph for this function:| int net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.getResetTimeout | ( | ) |
Returns the reset timeout (in seconds).
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 289 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), and net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties().
Here is the caller graph for this function:| int net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.getSwapTime | ( | ) |
Returns the swap time (in ticks).
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 304 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), and net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties().
Here is the caller graph for this function:| String net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.getText | ( | ) |
Returns the message text.
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 575 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), and net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties().
Here is the caller graph for this function:
|
abstractprotected |
Returns this map arch object cast to its real type.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.isPointValid().
Here is the caller graph for this function:| String net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.getTilePath | ( | @NotNull final Direction | direction | ) |
Returns a tile path.
| direction | the tile path direction |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 370 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.isTilePathAuto().
Here is the caller graph for this function:| int net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.getTilePaths | ( | ) |
Returns the number of tile paths.
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 364 of file AbstractMapArchObject.java.
| int net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.hashCode | ( | ) |
Definition at line 472 of file AbstractMapArchObject.java.
| boolean net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.isFixedReset | ( | ) |
Returns whether this map uses a fixed reset.
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 334 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), and net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties().
Here is the caller graph for this function:| boolean net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.isOutdoor | ( | ) |
Returns whether the map is an "outdoor" map.
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 274 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties(), and net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.restoreMapProperties().
Here is the caller graph for this function:| boolean net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.isPointValid | ( | @Nullable final Point | pos | ) |
Checks whether the given coordinate is within map bounds.
| pos | the coordinates to check |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 597 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.crossfire.gui.map.renderer.SmoothingRenderer.paintSmooth().
Here is the caller graph for this function:| boolean net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.isTilePathAuto | ( | @NotNull final Direction | direction, |
| @Nullable final MapFile | mapFile | ||
| ) |
Determines whether a tiled map in the specified direction is automatic tiled path or not.
| direction | direction of the tiled map |
| mapFile | map file |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 436 of file AbstractMapArchObject.java.
| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.removeMapArchObjectListener | ( | @NotNull final MapArchObjectListener | listener | ) |
Unregisters an event listener.
| listener | the listener to unregister |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 482 of file AbstractMapArchObject.java.
| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setDarkness | ( | final int | darkness | ) |
Sets the light / darkness of this map.
| darkness | the new light / darkness of this map |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 354 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.model.maparchobject.DefaultMapArchObjectFactory.newMapArchObject(), net.sf.gridarta.var.daimonin.model.maparchobject.DefaultMapArchObjectFactory.newMapArchObject(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setDifficulty | ( | final int | difficulty | ) |
Sets the map's difficulty.
| difficulty | the new difficulty for this map |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 324 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setEnterX | ( | final int | enterX | ) |
Sets the enter x coordinate.
| enterX | the new enter x coordinate |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 243 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setEnterY | ( | final int | enterY | ) |
Sets the enter y coordinate.
| enterY | the new enter y coordinate |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 258 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setFixedReset | ( | final boolean | fixedReset | ) |
Sets whether this map uses a fixed reset.
| fixedReset | whether this map should use a fixed reset |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 339 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setMapName | ( | @NotNull final String | name | ) |
Sets the map name.
| name | the new map name |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 227 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.newMapControl(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setMapSize | ( | @NotNull final Size2D | mapSize | ) |
Sets the map size.
| mapSize | the new map size this does not change the size of the underlying MapModel. We eventually should change that so a map size isn't stored twice. |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 208 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.model.mapcontrol.TestMapControlCreator.newMapControl(), net.sf.gridarta.model.mapmodel.TestMapModelCreator.newMapModel(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
Here is the caller graph for this function:
|
protected |
Marks this map arch object as changed.
The map arch object then notifies the registered listeners of the change at the end of the transaction.
Definition at line 490 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.addLore(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.addText(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setBackgroundMusic(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setBackgroundMusic(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setBackgroundMusic(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setDarkness(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setDifficulty(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setEnterX(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setEnterY(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setFirstLoad(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setFixedLogin(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setFixedLogin(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setFixedReset(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setFixedResetTime(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setHeightDiff(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setHumidity(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setLore(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setMapName(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setMapSize(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setNoHarm(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setNoHarm(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setNoMagic(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setNoMagic(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setNoPriest(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setNoSave(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setNoSave(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setNoSmooth(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setNoSummon(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setNoSummon(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setOutdoor(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setPermDeath(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setPlayerNoSave(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setPressure(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setPvp(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setPvp(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setRegion(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setRegion(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setResetTimeout(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setShopGreed(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setShopItems(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setShopMax(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setShopMin(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setShopRace(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setSky(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setSwapTime(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setTemperature(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setTemplate(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setText(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setTilePath(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setTilesetId(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setTilesetId(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setTilesetX(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setTilesetX(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setTilesetY(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setTilesetY(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setUltimateDeath(), net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject.setUltraDeath(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setUnique(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setUnique(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObject.setWeather(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setWindDirection(), net.sf.gridarta.var.crossfire.model.maparchobject.MapArchObject.setWindSpeed(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.updateModifiedAttribute().
| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setOutdoor | ( | final boolean | outdoor | ) |
Sets whether the map is an "outdoor" map.
| outdoor | whether the map is an "outdoor" map |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 279 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setResetTimeout | ( | final int | resetTimeout | ) |
Sets the reset timeout (in seconds).
| resetTimeout | the new reset timeout (in seconds) |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 294 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setState | ( | @NotNull final A | mapArchObject | ) |
Resets the state of this object to the state of the given map arch object.
| mapArchObject | the map arch object to copy the state from |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 441 of file AbstractMapArchObject.java.
| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setSwapTime | ( | final int | swapTime | ) |
Sets the swap time (in ticks).
| swapTime | the swap time (in ticks) |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 309 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setText | ( | final String | text | ) |
Sets the map text.
| text | the new map text |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 563 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.var.daimonin.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.atrinik.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), net.sf.gridarta.var.crossfire.gui.mappropertiesdialog.MapPropertiesDialog.modifyMapProperties(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.setTilePath | ( | @NotNull final Direction | direction, |
| @NotNull final String | tilePath | ||
| ) |
Sets a tile path.
| direction | the tile path direction |
| tilePath | the new tile path |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 375 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.calculateTilePaths(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
Here is the caller graph for this function:| void net.sf.gridarta.model.maparchobject.AbstractMapArchObject< A extends MapArchObject< A >.updateModifiedAttribute | ( | @NotNull final String | userName | ) |
Updates the "Modified:" attribute in the message text.
| userName | the user name to include |
Implements net.sf.gridarta.model.maparchobject.MapArchObject< A extends MapArchObject< A >.
Definition at line 580 of file AbstractMapArchObject.java.
|
private |
Set if any attribute has changed inside the current transaction.
Definition at line 170 of file AbstractMapArchObject.java.
|
private |
The light / darkness of map (overall).
Zero means fully bright.
Definition at line 136 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.equals(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.getDarkness(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setDarkness(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
|
private |
The map difficulty.
If zero, server calculates something.
Definition at line 125 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.equals(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.getDifficulty(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setDifficulty(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
|
private |
The x coordinate for entering the map.
Definition at line 99 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.equals(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.getEnterX(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setEnterX(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
|
private |
The y coordinate for entering the map.
Definition at line 104 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.equals(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.getEnterY(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setEnterY(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
|
private |
If nonzero, the map reset time will not be updated when someone enters / exits the map.
Definition at line 131 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.equals(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.isFixedReset(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setFixedReset(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
|
private |
The registered event listeners.
Definition at line 150 of file AbstractMapArchObject.java.
|
staticprivate |
The pattern used to determine the base map name and its x/y/z coordinates from a filename.
Definition at line 76 of file AbstractMapArchObject.java.
|
static |
The name of an unnamed map.
Definition at line 56 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.AbstractMapArchObject(), net.sf.gridarta.var.atrinik.model.maparchobject.MapArchObjectTest.testParseMapArchNoAttributes(), and net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObjectTest.testParseMapArchNoAttributes().
|
private |
The name of this map.
Definition at line 94 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.equals(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.getMapName(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
|
private |
The size of the map reflected by this map arch object.
Definition at line 88 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.equals(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.getMapSize(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setMapSize(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
|
staticprivate |
The prefix for the map attribute that is updated with the last modification timestamp.
Definition at line 63 of file AbstractMapArchObject.java.
|
staticprivate |
The pattern to find the MODIFIED_ATTRIBUTE in the message text.
Definition at line 69 of file AbstractMapArchObject.java.
|
private |
The map text.
Definition at line 82 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.equals(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
|
private |
If set, this is an outdoor map.
Definition at line 109 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.equals(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.isOutdoor(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setOutdoor(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
|
private |
The number of ticks that need to elapse before this map will be reset.
Definition at line 114 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.equals(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.getResetTimeout(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setResetTimeout(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
|
staticprivate |
The serial version UID.
Definition at line 50 of file AbstractMapArchObject.java.
|
private |
The number of ticks that must elapse after tha map has not been used before it gets swapped out.
Definition at line 120 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.equals(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.getSwapTime(), net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setSwapTime().
|
private |
The map tile paths used for map tiling.
0 = north, 1 = east, 2 = south, 3 = west. 4 = northeast, 5 = southeast, 6 = southwest, 7 = northwest, 8 = up, 9 = down
Definition at line 144 of file AbstractMapArchObject.java.
Referenced by net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.equals(), and net.sf.gridarta.model.maparchobject.AbstractMapArchObject< MapArchObject >.setState().
|
private |
The transaction depth.
A value of 0 means there's no transaction going on. A value > 0 means there's a transaction going on and denotes the nesting level.
Definition at line 158 of file AbstractMapArchObject.java.
|
private |
The thread that performs the current transaction.
Definition at line 165 of file AbstractMapArchObject.java.