Gridarta Editor
net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R > Class Template Reference

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...
 
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...
 
getAfterLast (@NotNull final GameObjectMatcher gameObjectMatcher)
 Returns the game object after the last occurrence of a matching game object. More...
 
getBeforeFirst (@NotNull final GameObjectMatcher gameObjectMatcher)
 Returns the game object before the first occurrence of a matching game object. More...
 
getFirst (@NotNull final GameObjectMatcher gameObjectMatcher)
 Returns the first occurrence of a matching game object. More...
 
getLast (@NotNull final GameObjectMatcher gameObjectMatcher)
 Returns the last occurrence of a matching game object. More...
 
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...
 
getFirst ()
 Return the first GameObject contained in this container. More...
 
getLast ()
 Return the last GameObject contained in this container. More...
 
abstract MapSquare< G, A, R > getMapSquare ()
 Returns the MapSquare of this container. More...
 
getNext (@NotNull final G gameObject)
 Return the GameObject succeeding a given game object. More...
 
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...
 

Detailed Description

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.

Author
Christian Hujer

Definition at line 45 of file MapSquare.java.

Constructor & Destructor Documentation

◆ MapSquare()

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.

Parameters
mapModelthe map model this map square is part of
mapXthe x coordinate of this map square within the model's grid
mapYthe y coordinate of this map square within the model's grid

Definition at line 88 of file MapSquare.java.

Member Function Documentation

◆ addLightSource()

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.

Parameters
mapSquarethe 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:

◆ asGameObject()

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.

◆ beginSquareChange()

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.

◆ clone()

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 >.clone ( )
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:

◆ endSquareChange()

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.

◆ equals()

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.

◆ getAfterLast()

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.

Parameters
gameObjectMatcherthe matcher to use
Returns
the game object after the last match, or
null
if no such game object exists TypeMayBeWeakened

Definition at line 208 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().

+ Here is the caller graph for this function:

◆ getBeforeFirst()

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.

Parameters
gameObjectMatcherthe matcher to use
Returns
the game object before the first match, or
null
if no such game object exists TypeMayBeWeakened

Definition at line 244 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().

+ Here is the caller graph for this function:

◆ getFirst()

◆ getLast()

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.

Parameters
gameObjectMatcherthe matcher to use
Returns
the last match, or
null
if no such game object exists

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:

◆ getLastOfLeadingSpan()

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.

Parameters
gameObjectMatcherthe matcher to use
Returns
the result or
null
if the first game object does not match
gameObjectMatcher
TypeMayBeWeakened

Definition at line 264 of file MapSquare.java.

◆ getLightRadius()

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.

Returns
the light radius or
0
if no light emitting objects are present

Definition at line 325 of file MapSquare.java.

◆ getMapLocation() [1/3]

◆ getMapLocation() [2/3]

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.

Parameters
posreturns the coordinate on the map

Definition at line 132 of file MapSquare.java.

◆ getMapLocation() [3/3]

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.

Parameters
posreturns the coordinate on the map
dxthe x offset to add to the coordinate
dythe y offset to add to the coordinate

Definition at line 143 of file MapSquare.java.

◆ getMapModel()

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.

Returns
the map model

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:

◆ getMapSquare()

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:

◆ getMapX()

◆ getMapY()

◆ hashCode()

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.

◆ isLight()

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.

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:

◆ notifyBeginChange()

◆ notifyEndChange()

◆ removeLightSource()

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.

Parameters
mapSquarethe 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:

◆ setLightRadius()

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.

Parameters
lightRadiusthe light radius or
0
if no light emitting objects are present

Definition at line 335 of file MapSquare.java.

◆ setThisContainer()

void net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.setThisContainer ( @NotNull final G  gameObject)
protected

Definition at line 174 of file MapSquare.java.

◆ toString()

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.

Member Data Documentation

◆ lightRadius

int net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.lightRadius
private

The maximum light radius of all objects within this map square.

Set to

0

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().

◆ lightSources

List<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 >.lightSources = Collections.emptyList()
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.

◆ mapModel

final 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 >.mapModel
private

◆ mapX

◆ mapY

◆ serialVersionUID

final long net.sf.gridarta.model.mapmodel.MapSquare< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 50 of file MapSquare.java.


The documentation for this class was generated from the following file: