 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.var.daimonin.model.gameobject;
29 import org.jetbrains.annotations.NotNull;
30 import org.jetbrains.annotations.Nullable;
48 private static final int @NotNull []
LIGHT_MASK_WIDTH = { 0, 1, 2, 2, 3, 3, 3, 4, 4, 4, };
81 super.addLast(gameObject);
90 super.addFirst(gameObject);
98 public void updateTileStretch(
final int heightValue,
final boolean isAbsolute, @NotNull
final Integer @Nullable [] subLayers) {
103 public void applyMassChange(@NotNull
final Integer @NotNull [] layers, @NotNull
final Integer[] subLayers, @NotNull
final String changes) {
108 return drawDoubleFaces;
119 return super.
clone();
140 final int attributeInt = Math.abs(getAttributeInt(
GLOW_RADIUS));
void updateTileStretch(final int heightValue, final boolean isAbsolute, @NotNull final Integer @Nullable[] subLayers)
Defines types of GameObjects with corresponding attributes.
void addFirst(@NotNull final GameObject gameObject)
boolean isStretched(final boolean tileStretching)
Returns whether to draw this game object with stretching transformation.
Default implementation for GameObject implementing classes.
final transient ArchetypeTypeSet archetypeTypeSet
The ArchetypeTypeSet for looking up archetype types.
Base package of all Gridarta classes.
AnimationObjects is a container for AnimationObjects.
void addLast(@NotNull final GameObject gameObject)
Implements Daimonin archetypes.
Provider for faces of GameObjects and Archetypes.
Manages ArchetypeType instances, list, and bitmask definitions.
R archetype
The Archetype of this game object.
static final int[] LIGHT_MASK_WIDTH
Maps values of GLOW_RADIUS to effective glow radius in map squares.
GameObjects are the objects based on Archetypes found on maps.
final transient FaceObjectProviders faceObjectProviders
The FaceObjectProviders for looking up faces.
boolean isDrawDouble(final boolean drawDoubleFaces)
Returns whether to draw this game object with double height.
ArchetypeType getArchetypeTypeByBaseObject(@NotNull final BaseObject<?, ?, ?, ?> baseObject)
Returns the ArchetypeType for the given BaseObject.
void propagateElevation(@NotNull final BaseObject<?, ?, ?, ?> gameObject)
static final String GLOW_RADIUS
The name of the "glow_radius" attribute.
static final long serialVersionUID
The serial version UID.
Handles the Daimonin GameObjects.
void applyMassChange(@NotNull final Integer @NotNull[] layers, @NotNull final Integer[] subLayers, @NotNull final String changes)
GameObject(@NotNull final Archetype archetype, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeTypeSet archetypeTypeSet)
Creates a new instance.
Main package of Gridarta4Daimonin, contains all classes specific to the Daimonin version of the Grida...
The face is the appearance of an object.
Gridarta can handle frame information of animations and allow the selection of an animation using a t...
MapArchObject contains the specific meta data about a map that is stored in the map-arch,...
int getTypeNo()
Returns the type number of this Archetype.
int getTypeNo()
Returns the type number.