Gridarta Editor
net.sf.gridarta.model.gameobject.TestGameObject Class Reference

A GameObject implementation for testing purposes. More...

+ Inheritance diagram for net.sf.gridarta.model.gameobject.TestGameObject:
+ Collaboration diagram for net.sf.gridarta.model.gameobject.TestGameObject:

Public Member Functions

void applyMassChange (@NotNull final Integer[] layers, @NotNull final Integer[] subLayers, @NotNull final String changes)
 
TestGameObject clone ()
 
int getLightRadius ()
 
boolean isDrawDouble (final boolean drawDoubleFaces)
 
boolean isScripted ()
 
boolean isStretched (final boolean tileStretching)
 
void propagateElevation (@NotNull final BaseObject<?, ?, ?, ?> gameObject)
 
 TestGameObject (@NotNull final TestArchetype archetype, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects)
 Creates a new instance. More...
 
void updateTileStretch (final int heightValue, final boolean isAbsolute, @Nullable final Integer[] subLayers)
 
- Public Member Functions inherited from net.sf.gridarta.model.gameobject.DefaultIsoGameObject< TestGameObject, TestMapArchObject, TestArchetype >
clone ()
 
void facesReloaded ()
 
Icon getDoubleImage ()
 Returns a double variant of the face for this GameObject. More...
 
Icon getStretchedImage (final long stretchFactor)
 Returns a stretched variant of the face for this floor-type GameObject. More...
 
final long getStretchFactor ()
 Acquire stretch factor of the object. More...
 
Icon getTransparentDoubleImage ()
 Returns a transparent variant of the face for this GameObject. More...
 
Icon getTransparentImage ()
 Returns a transparent variant of the face for this GameObject. More...
 
final int getYOffset ()
 Acquire Y offset of the object for rendering purposes. More...
 
abstract boolean isDrawDouble (boolean drawDoubleFaces)
 Returns whether to draw this game object with double height. More...
 
boolean isEqual ( @NotNull final BaseObject<?, ?, ?, ?> gameObject)
 
abstract boolean isStretched (boolean tileStretching)
 Returns whether to draw this game object with stretching transformation. More...
 
final void refreshStretchFactor ()
 Invalidates stretch factor value calculated by getStretchFactor() and clears the stored stretched face. More...
 
void setObjectFace ()
 
boolean usesDirection ()
 

Protected Member Functions

TestGameObject getThis ()
 
- Protected Member Functions inherited from net.sf.gridarta.model.gameobject.DefaultIsoGameObject< TestGameObject, TestMapArchObject, TestArchetype >
 DefaultIsoGameObject ( @NotNull final R archetype, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects)
 Creates a new instance. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 The serial version UID. More...
 

Additional Inherited Members

- Static Public Attributes inherited from net.sf.gridarta.model.gameobject.DefaultIsoGameObject< TestGameObject, TestMapArchObject, TestArchetype >
static final String ALIGN
 The name of the "align" attribute. More...
 
static final String ALPHA
 The name of the "alpha" attribute. More...
 
static final String DRAW_DOUBLE
 The name of the "draw_double" attribute. More...
 
static final String DRAW_DOUBLE_ALWAYS
 The name of the "draw_double_always" attribute. More...
 
static final String GLOW_RADIUS
 The name of the "glow_radius" attribute. More...
 
static final String LAYER
 The name of the "layer" attribute. More...
 
static final int MAX_SUB_LAYERS
 
static final String ROTATE
 The name of the "rotate" attribute. More...
 
static final String SUB_LAYER
 The name of the "sub_layer" attribute. More...
 
static final String SYS_OBJECT
 The name of the "sys_object" attribute. More...
 
static final String Z
 The name of the "z" attribute. More...
 
static final String ZOOM
 The name of the "zoom" attribute. More...
 

Detailed Description

A GameObject implementation for testing purposes.

Author
Andreas Kirschbaum

Definition at line 34 of file TestGameObject.java.

Constructor & Destructor Documentation

◆ TestGameObject()

net.sf.gridarta.model.gameobject.TestGameObject.TestGameObject ( @NotNull final TestArchetype  archetype,
@NotNull final FaceObjectProviders  faceObjectProviders,
@NotNull final AnimationObjects  animationObjects 
)

Creates a new instance.

Parameters
archetypethe base archetype
faceObjectProvidersthe face object providers for looking up faces
animationObjectsthe animation objects for looking up animations

Definition at line 48 of file TestGameObject.java.

Member Function Documentation

◆ applyMassChange()

void net.sf.gridarta.model.gameobject.TestGameObject.applyMassChange ( @NotNull final Integer []  layers,
@NotNull final Integer []  subLayers,
@NotNull final String  changes 
)

Definition at line 78 of file TestGameObject.java.

◆ clone()

TestGameObject net.sf.gridarta.model.gameobject.TestGameObject.clone ( )

Definition at line 88 of file TestGameObject.java.

References net.sf.gridarta.model.gameobject.TestGameObject.clone().

Referenced by net.sf.gridarta.model.gameobject.TestGameObject.clone(), and net.sf.gridarta.model.gameobject.TestGameObjectFactory.cloneGameObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLightRadius()

int net.sf.gridarta.model.gameobject.TestGameObject.getLightRadius ( )

Definition at line 63 of file TestGameObject.java.

◆ getThis()

TestGameObject net.sf.gridarta.model.gameobject.TestGameObject.getThis ( )
protected

Definition at line 94 of file TestGameObject.java.

◆ isDrawDouble()

boolean net.sf.gridarta.model.gameobject.TestGameObject.isDrawDouble ( final boolean  drawDoubleFaces)

Definition at line 53 of file TestGameObject.java.

◆ isScripted()

boolean net.sf.gridarta.model.gameobject.TestGameObject.isScripted ( )

Definition at line 82 of file TestGameObject.java.

◆ isStretched()

boolean net.sf.gridarta.model.gameobject.TestGameObject.isStretched ( final boolean  tileStretching)

Definition at line 58 of file TestGameObject.java.

◆ propagateElevation()

void net.sf.gridarta.model.gameobject.TestGameObject.propagateElevation ( @NotNull final BaseObject<?, ?, ?, ?>  gameObject)

Definition at line 68 of file TestGameObject.java.

◆ updateTileStretch()

void net.sf.gridarta.model.gameobject.TestGameObject.updateTileStretch ( final int  heightValue,
final boolean  isAbsolute,
@Nullable final Integer []  subLayers 
)

Definition at line 73 of file TestGameObject.java.

Member Data Documentation

◆ serialVersionUID

final long net.sf.gridarta.model.gameobject.TestGameObject.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 39 of file TestGameObject.java.


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