|
Gridarta Editor
|
A single Map Square. More...
Inheritance diagram for net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:
Collaboration diagram for net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >:Public Member Functions | |
| void | addLightSource (@NotNull final MapSquare< G, A, R > mapSquare) |
| Adds a light emitting game object that affects this map square. More... | |
| G | asGameObject () |
| void | beginSquareChange () |
| Method to notify the model that a map square is about to change. More... | |
| void | endSquareChange () |
| Method to notify the model that a map square was changed. More... | |
| boolean | equals (@Nullable final Object obj) |
| } More... | |
| G | getAfterLast (@NotNull final GameObjectMatcher gameObjectMatcher) |
| Returns the game object after the last occurrence of a matching game object. More... | |
| G | getBeforeFirst (@NotNull final GameObjectMatcher gameObjectMatcher) |
| Returns the game object before the first occurrence of a matching game object. More... | |
| G | getFirst (@NotNull final GameObjectMatcher gameObjectMatcher) |
| Returns the first occurrence of a matching game object. More... | |
| G | getLast (@NotNull final GameObjectMatcher gameObjectMatcher) |
| Returns the last occurrence of a matching game object. More... | |
| G | getLastOfLeadingSpan (@NotNull final GameObjectMatcher gameObjectMatcher) |
| Returns the last game object of the initial segment of matching game objects. More... | |
| int | getLightRadius () |
| Returns the maximum light radius of all light emitting objects within this map square. More... | |
| Point | getMapLocation () |
| Returns the coordinate on the map. More... | |
| void | getMapLocation (@NotNull final Point pos) |
| Returns the coordinate on the map. More... | |
| void | getMapLocation (@NotNull final Point pos, final int dx, final int dy) |
| Returns the coordinate with an offset on the map. More... | |
| MapModel< G, A, R > | getMapModel () |
| Returns the MapModel this map square is part of. More... | |
| MapSquare< G, A, R > | getMapSquare () |
| int | getMapX () |
| Returns the x coordinate on the map. More... | |
| int | getMapY () |
| Returns the y coordinate on the map. More... | |
| int | hashCode () |
| } More... | |
| boolean | isLight () |
| Returns whether this map square is affected by any light emitting game objects. More... | |
| MapSquare (@NotNull final MapModel< G, A, R > mapModel, final int mapX, final int mapY) | |
| Creates a new instance. More... | |
| void | removeLightSource (@NotNull final MapSquare< G, A, R > mapSquare) |
| Removes a light emitting game object that affects this map square. More... | |
| void | setLightRadius (final int lightRadius) |
| Sets the maximum light radius of all light emitting objects within this map square. More... | |
| String | toString () |
| } More... | |
Public Member Functions inherited from net.sf.gridarta.model.baseobject.GameObjectContainer< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > | |
| void | addFirst (@NotNull final G gameObject) |
| Add the given GameObject at the end of this Container. More... | |
| void | addLast (@NotNull final G gameObject) |
| Add the given GameObject at the end of this Container. More... | |
| abstract G | asGameObject () |
| Returns this instance as a GameObject or. More... | |
| G | getFirst () |
| Return the first GameObject contained in this container. More... | |
| G | getLast () |
| Return the last GameObject contained in this container. More... | |
| abstract MapSquare< G, A, R > | getMapSquare () |
| Returns the MapSquare of this container. More... | |
| G | getNext (@NotNull final G gameObject) |
| Return the GameObject succeeding a given game object. More... | |
| G | getPrev (@NotNull final G gameObject) |
| Return the GameObject preceding a given game object. More... | |
| boolean | hasSameContents (@NotNull final GameObjectContainer<?, ?, ?> gameObjectContainer) |
| Compare this object to another game object container. More... | |
| void | insertAfter (@Nullable final G previousGameObject, @NotNull final G gameObject) |
| Add a GameObject after another. More... | |
| void | insertBefore (@NotNull final G gameObject, @Nullable final G nextGameObject) |
| Add a GameObject before another. More... | |
| boolean | isBottom (@NotNull final G gameObject) |
| Returns whether this game object is the bottom-most one. More... | |
| boolean | isEmpty () |
| Check whether this square is empty. More... | |
| boolean | isTop (@NotNull final G gameObject) |
| Returns whether this game object is the top-most one. More... | |
| Iterator< G > | iterator () |
| The Iterator returned does not recurse, it only contains objects on the first level. More... | |
| void | moveBottom (@NotNull final G gameObject) |
| Move an item to bottom. More... | |
| void | moveDown (@NotNull final G gameObject) |
| Move an item down. More... | |
| void | moveTop (@NotNull final G gameObject) |
| Move an item to top. More... | |
| void | moveUp (@NotNull final G gameObject) |
| Move an item up. More... | |
| Iterable< G > | recursive () |
| Return an object that is a recursive representation. More... | |
| void | remove (@NotNull final G gameObject) |
| Remove a GameObject from this container. More... | |
| void | removeAll () |
| Removes all GameObjects from this container. More... | |
| void | replace (@NotNull final G oldGameObject, @NotNull final G newGameObject) |
| Replace an GameObject with another one. More... | |
| Iterable< G > | reverse () |
| Return an object that is the reverse representation. More... | |
| String | toString () |
Protected Member Functions | |
| MapSquare< G, A, R > | clone () |
| void | notifyBeginChange () |
| void | notifyEndChange () |
| void | setThisContainer (@NotNull final G gameObject) |
Protected Member Functions inherited from net.sf.gridarta.model.baseobject.GameObjectContainer< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > | |
| Object | clone () |
| GameObjectContainer () | |
| Create a new GameObjectContainer. More... | |
| abstract void | notifyBeginChange () |
| Notify the map model that this container is about to change. More... | |
| abstract void | notifyEndChange () |
| Notify the map model that this container has changed. More... | |
| abstract void | setThisContainer (@NotNull G gameObject) |
| Sets a GameObject's container to this container. More... | |
Private Attributes | |
| int | lightRadius |
| The maximum light radius of all objects within this map square. More... | |
| List< MapSquare< G, A, R > > | lightSources = Collections.emptyList() |
| The MapSquares on the map that contain light emitting game objects that affect this map square. More... | |
| final MapModel< G, A, R > | mapModel |
| The MaoModel this square is associated with. More... | |
| final int | mapX |
| The X Coordinate of this map square within the model's grid. More... | |
| final int | mapY |
| The Y Coordinate of this map square within the model's grid. More... | |
Static Private Attributes | |
| static final long | serialVersionUID = 1L |
| The serial version UID. More... | |
A single Map Square.
This class is implemented in a way that changes via some modifier methods in a map square will automatically fire events in the associated MapModel. A MapSquare always knows its model. It's not possible to create a MapSquare that is not associated to a model.
The objects are stored bottom to top: getFirst() returns the object at the bottom, getLast() returns the object at the top of the square.
Definition at line 45 of file MapSquare.java.
| net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.MapSquare | ( | @NotNull final MapModel< G, A, R > | mapModel, |
| final int | mapX, | ||
| final int | mapY | ||
| ) |
Creates a new instance.
| mapModel | the map model this map square is part of |
| mapX | the x coordinate of this map square within the model's grid |
| mapY | the y coordinate of this map square within the model's grid |
Definition at line 88 of file MapSquare.java.
| void net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.addLightSource | ( | @NotNull final MapSquare< G, A, R > | mapSquare | ) |
Adds a light emitting game object that affects this map square.
| mapSquare | the map square that contains the game object |
Definition at line 352 of file MapSquare.java.
Referenced by net.sf.gridarta.model.mapmodel.LightMapModelTracker< G, A, R >.setLightRadius().
Here is the caller graph for this function:| G net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.asGameObject | ( | ) |
Definition at line 180 of file MapSquare.java.
| void net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.beginSquareChange | ( | ) |
Method to notify the model that a map square is about to change.
Definition at line 278 of file MapSquare.java.
|
protected |
Definition at line 167 of file MapSquare.java.
Referenced by net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.clone().
Here is the caller graph for this function:| void net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.endSquareChange | ( | ) |
Method to notify the model that a map square was changed.
Definition at line 285 of file MapSquare.java.
| boolean net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.equals | ( | @Nullable final Object | obj | ) |
}
Definition at line 293 of file MapSquare.java.
| G net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getAfterLast | ( | @NotNull final GameObjectMatcher | gameObjectMatcher | ) |
Returns the game object after the last occurrence of a matching game object.
| gameObjectMatcher | the matcher to use |
Definition at line 208 of file MapSquare.java.
Here is the caller graph for this function:| G net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getBeforeFirst | ( | @NotNull final GameObjectMatcher | gameObjectMatcher | ) |
Returns the game object before the first occurrence of a matching game object.
| gameObjectMatcher | the matcher to use |
Definition at line 244 of file MapSquare.java.
Here is the caller graph for this function:| G net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getFirst | ( | @NotNull final GameObjectMatcher | gameObjectMatcher | ) |
Returns the first occurrence of a matching game object.
| gameObjectMatcher | the matcher to use |
Definition at line 226 of file MapSquare.java.
Referenced by net.sf.gridarta.actions.UndoActionsTest.checkFace(), net.sf.gridarta.model.mapmodel.TopLevelGameObjectIteratorTest.createMap(), net.sf.gridarta.gui.panel.tools.DeletionTool< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.deleteArch(), net.sf.gridarta.model.mapcursor.MapCursor< G, A, R >.deleteSelectedGameObject(), and net.sf.gridarta.gui.panel.objectchooser.DefaultObjectChooser< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.updatePickmapInfo().
Here is the caller graph for this function:| G net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getLast | ( | @NotNull final GameObjectMatcher | gameObjectMatcher | ) |
Returns the last occurrence of a matching game object.
| gameObjectMatcher | the matcher to use |
Definition at line 190 of file MapSquare.java.
Referenced by net.sf.gridarta.gui.panel.tools.DeletionTool< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.deleteArch(), and net.sf.gridarta.model.mapcursor.MapCursor< G, A, R >.selectTopmostGameObject().
Here is the caller graph for this function:| G net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getLastOfLeadingSpan | ( | @NotNull final GameObjectMatcher | gameObjectMatcher | ) |
Returns the last game object of the initial segment of matching game objects.
| gameObjectMatcher | the matcher to use |
Definition at line 264 of file MapSquare.java.
| int net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getLightRadius | ( | ) |
Returns the maximum light radius of all light emitting objects within this map square.
Definition at line 325 of file MapSquare.java.
| Point net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapLocation | ( | ) |
Returns the coordinate on the map.
Definition at line 124 of file MapSquare.java.
Referenced by net.sf.gridarta.action.MoveSquareEnvAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog(), net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesControl< G, A, R >.mapArchAddEnv(), net.sf.gridarta.model.mapmodel.DefaultMapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.removeGameObject(), and net.sf.gridarta.gui.map.mapactions.MapActions< G, A, R >.selectExit().
Here is the caller graph for this function:| void net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapLocation | ( | @NotNull final Point | pos | ) |
Returns the coordinate on the map.
| pos | returns the coordinate on the map |
Definition at line 132 of file MapSquare.java.
| void net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapLocation | ( | @NotNull final Point | pos, |
| final int | dx, | ||
| final int | dy | ||
| ) |
Returns the coordinate with an offset on the map.
| pos | returns the coordinate on the map |
| dx | the x offset to add to the coordinate |
| dy | the y offset to add to the coordinate |
Definition at line 143 of file MapSquare.java.
| MapModel<G, A, R> net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapModel | ( | ) |
Returns the MapModel this map square is part of.
Definition at line 99 of file MapSquare.java.
Referenced by net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesControl< G, A, R >.applyArchPanelChanges(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings(), net.sf.gridarta.gui.mainwindow.GameObjectTextEditorTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.autoApplyArchPanelChanges(), net.sf.gridarta.gui.panel.tools.DeletionTool< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.deleteArch(), net.sf.gridarta.gui.panel.gameobjectattributes.ArchTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.direction(), net.sf.gridarta.action.MoveSquareInvAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareBottomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareDownAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareTopAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareUpAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareEnvAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.gui.panel.gameobjectattributes.EventsTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAddNewEvent(), net.sf.gridarta.gui.panel.gameobjectattributes.EventsTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doEditEvent(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog(), net.sf.gridarta.model.gameobject.DefaultIsoGameObject< TestGameObject, TestMapArchObject, TestArchetype >.getYFloorOffset(), net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesControl< G, A, R >.mapArchAddEnv(), net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesControl< G, A, R >.mapArchAddInv(), net.sf.gridarta.model.mapmodel.DefaultMapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.moveEnv(), net.sf.gridarta.model.maplocation.MapLocation.newAbsoluteMapLocation(), net.sf.gridarta.model.gameobject.AbstractGameObject< GameObject, MapArchObject, Archetype >.notifyBeginChange(), net.sf.gridarta.model.gameobject.AbstractGameObject< GameObject, MapArchObject, Archetype >.notifyEndChange(), net.sf.gridarta.model.gameobject.AbstractGameObject< GameObject, MapArchObject, Archetype >.notifyTransientChange(), net.sf.gridarta.model.mapcursor.MapCursor< G, A, R >.setGameObject(), net.sf.gridarta.model.validation.checks.ExitChecker< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.validateGameObject(), and net.sf.gridarta.var.crossfire.model.validation.checks.NonAbsoluteExitPathChecker.validateGameObject().
Here is the caller graph for this function:| MapSquare<G, A, R> net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapSquare | ( | ) |
Definition at line 150 of file MapSquare.java.
Referenced by net.sf.gridarta.model.validation.errors.ValidationError< G, A, R >.addGameObject(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.applySettings(), net.sf.gridarta.model.mapmodel.DefaultMapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.beginGameObjectChange(), net.sf.gridarta.actions.UndoActionsTest.checkFace(), net.sf.gridarta.action.MoveSquareBottomAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareInvAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareTopAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareUpAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.action.MoveSquareDownAction< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAction(), net.sf.gridarta.gui.panel.gameobjectattributes.EventsTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doAddNewEvent(), net.sf.gridarta.gui.panel.gameobjectattributes.EventsTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.doEditEvent(), net.sf.gridarta.model.mapmodel.DefaultMapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.fireEvents(), net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialog< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.GameObjectAttributesDialog(), net.sf.gridarta.model.validation.ValidationErrorComparator< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMinX(), net.sf.gridarta.model.validation.ValidationErrorComparator< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMinY(), net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareModel< G, A, R >.isSelectedGameObjects(), net.sf.gridarta.gui.panel.gameobjectattributes.GameObjectAttributesControl< G, A, R >.mapArchAddEnv(), net.sf.gridarta.model.maplocation.MapLocation.newAbsoluteMapLocation(), net.sf.gridarta.model.validation.checks.MapCheckerScriptChecker< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.parseOutput(), net.sf.gridarta.model.mapmodel.DefaultMapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.removeGameObject(), net.sf.gridarta.gui.map.mapactions.MapActions< G, A, R >.selectExit(), net.sf.gridarta.model.mapcursor.MapCursor< G, A, R >.setGameObject(), net.sf.gridarta.gui.panel.selectedsquare.SelectedSquareView< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setMapCursor(), net.sf.gridarta.model.validation.checks.ExitChecker< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.validateGameObject(), and net.sf.gridarta.var.crossfire.model.validation.checks.NonAbsoluteExitPathChecker.validateGameObject().
Here is the caller graph for this function:| int net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapX | ( | ) |
Returns the x coordinate on the map.
Definition at line 107 of file MapSquare.java.
Referenced by net.sf.gridarta.model.mapmodel.DefaultMapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.discardInvalidMapSquares(), net.sf.gridarta.model.validation.errors.ValidationError< G, A, R >.getMessage(), net.sf.gridarta.model.validation.ValidationErrorComparator< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMinX(), net.sf.gridarta.model.gameobject.DefaultIsoGameObject< TestGameObject, TestMapArchObject, TestArchetype >.getYFloorOffset(), net.sf.gridarta.gui.copybuffer.CopyBuffer< G, A, R >.pasteTiled(), and net.sf.gridarta.model.mapcursor.MapCursor< G, A, R >.setGameObject().
Here is the caller graph for this function:| int net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMapY | ( | ) |
Returns the y coordinate on the map.
Definition at line 115 of file MapSquare.java.
Referenced by net.sf.gridarta.model.mapmodel.DefaultMapModel< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.discardInvalidMapSquares(), net.sf.gridarta.model.validation.errors.ValidationError< G, A, R >.getMessage(), net.sf.gridarta.model.validation.ValidationErrorComparator< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMinX(), net.sf.gridarta.model.validation.ValidationErrorComparator< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.getMinY(), net.sf.gridarta.model.gameobject.DefaultIsoGameObject< TestGameObject, TestMapArchObject, TestArchetype >.getYFloorOffset(), and net.sf.gridarta.model.mapcursor.MapCursor< G, A, R >.setGameObject().
Here is the caller graph for this function:| int net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.hashCode | ( | ) |
}
Definition at line 306 of file MapSquare.java.
| boolean net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.isLight | ( | ) |
Returns whether this map square is affected by any light emitting game objects.
Definition at line 389 of file MapSquare.java.
Referenced by net.sf.gridarta.gui.map.renderer.AbstractIsoMapRenderer< G, A, R >.paintMapSelection(), and net.sf.gridarta.var.crossfire.gui.map.renderer.AbstractFlatMapRenderer.paintSquareSelection().
Here is the caller graph for this function:
|
protected |
Definition at line 155 of file MapSquare.java.
Referenced by net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.addLightSource(), net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.removeLightSource(), and net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.setLightRadius().
Here is the caller graph for this function:
|
protected |
Definition at line 160 of file MapSquare.java.
Referenced by net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.addLightSource(), net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.removeLightSource(), and net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.setLightRadius().
Here is the caller graph for this function:| void net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.removeLightSource | ( | @NotNull final MapSquare< G, A, R > | mapSquare | ) |
Removes a light emitting game object that affects this map square.
| mapSquare | the map square that contains the game object |
Definition at line 369 of file MapSquare.java.
Referenced by net.sf.gridarta.model.mapmodel.LightMapModelTracker< G, A, R >.setLightRadius().
Here is the caller graph for this function:| void net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setLightRadius | ( | final int | lightRadius | ) |
Sets the maximum light radius of all light emitting objects within this map square.
| lightRadius | the light radius or 0 |
Definition at line 335 of file MapSquare.java.
|
protected |
Definition at line 174 of file MapSquare.java.
| String net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.toString | ( | ) |
}
Definition at line 315 of file MapSquare.java.
|
private |
The maximum light radius of all objects within this map square.
Set to
if no light emitting objects are present.
Definition at line 72 of file MapSquare.java.
Referenced by net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.getLightRadius(), and net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.setLightRadius().
|
private |
The MapSquares on the map that contain light emitting game objects that affect this map square.
Set to Collections#emptyList() when empty.
Definition at line 80 of file MapSquare.java.
|
private |
The MaoModel this square is associated with.
Definition at line 56 of file MapSquare.java.
Referenced by net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.equals(), net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.getMapModel(), and net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.MapSquare().
|
private |
The X Coordinate of this map square within the model's grid.
Definition at line 61 of file MapSquare.java.
Referenced by net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.equals(), net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.getMapLocation(), net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.getMapX(), and net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.MapSquare().
|
private |
The Y Coordinate of this map square within the model's grid.
Definition at line 66 of file MapSquare.java.
Referenced by net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.equals(), net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.getMapLocation(), net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.getMapY(), net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.hashCode(), net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.MapSquare(), and net.sf.gridarta.model.mapmodel.MapSquare< G, A, R >.toString().
|
staticprivate |
The serial version UID.
Definition at line 50 of file MapSquare.java.