 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.gameobject;
22 import java.util.Iterator;
28 import org.jetbrains.annotations.NotNull;
29 import org.jetbrains.annotations.Nullable;
57 void addLast(@NotNull G gameObject);
74 void addFirst(@NotNull G gameObject);
98 void updateTileStretch(
int heightValue,
boolean isAbsolute, @NotNull Integer @Nullable [] subLayers);
107 void applyMassChange(@NotNull Integer @NotNull [] layers, @NotNull Integer @NotNull [] subLayers, @NotNull String changes);
void moveTop()
Move this GameObject top.
void updateTileStretch(int heightValue, boolean isAbsolute, @NotNull Integer @Nullable[] subLayers)
Updates the tile stretching value of the selected object.
Base package of all Gridarta classes.
boolean isInContainer()
Check whether this GameObject is in a Container (in Gridarta sense, which means being in a MapSquare ...
void moveBottom()
Move this GameObject bottom.
int getLightRadius()
Returns the effective light radius of this game object.
Iterator< G > iterator()
The Iterator returned does not recurse, it only contains objects on the first level.
void moveUp()
Move this GameObject up.
Reflects a game object (object on a map).
boolean isScripted()
Returns whether this GameObject has one or more scripted events defined.
G getFirst()
Return the first GameObject contained in this container.
void propagateElevation(@NotNull BaseObject<?, ?, ?, ?> gameObject)
If there is elevation data in the other game object, move it to here.
void addFirst(@NotNull G gameObject)
Add the given GameObject at the beginning of this Container.
Interface for MapArchObjects.
boolean hasUndefinedArchetype()
Return whether this instance references an undefined archetype.
boolean isTop()
Returns whether this game object is the top-most one.
boolean isBottom()
Returns whether this game object is the bottom-most one.
G getLast()
Return the last GameObject contained in this container.
String EDITOR_FOLDER_INTERN
The editor folder name for server-internal archetypes.
void markModified()
Marks this game object as "modified".
MapSquare< G, A, R > getMapSquareOptional()
Returns the MapSquare this game object is part of.
void addLast(@NotNull G gameObject)
Add the given GameObject at the end of this Container.
G getTopContainer()
Get the topmost container of this GameObject (in Game sense, which means being in a MapSquare isn't,...
void applyMassChange(@NotNull Integer @NotNull[] layers, @NotNull Integer @NotNull[] subLayers, @NotNull String changes)
Applies mass changes to the specified object if all the match conditions are met.
boolean isEmpty()
Check whether this square is empty.
MapSquare< G, A, R > getMapSquare()
Returns the MapSquare this game object is part of.
void setContainer(@Nullable GameObjectContainer< G, A, R > container, int mapX, int mapY)
Sets container of this GameObject.
Iterable< G > recursive()
Return an object that is a recursive representation.
G getNext()
Returns the game object succeeding this game object.
Base class for classes that contain GameObjects as children in the sense of containment.
void removeAll()
Removes all GameObjects from this container.
void moveDown()
Move this GameObject down.
G getPrev()
Returns the game object preceding this game object.
void insertAfter(@NotNull G node)
Insert a GameObject after this GameObject.
void setArchetype(@NotNull R archetype)
Set the Archetype of this GameObject.
void insertBefore(@NotNull G node)
Insert a GameObject before this GameObject.
Iterable< G > reverse()
Return an object that is the reverse representation.
G getContainerGameObject()
Returns the environment game object if this game object is in the inventory or.
GameObjectContainer< G, A, R > getContainer()
Returns container of this GameObject.