net.sf.gridarta.model.gameobject
public class TestGameObject extends DefaultIsoGameObject<TestGameObject,TestMapArchObject,TestArchetype>
GameObject
implementation for testing purposes.Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The serial version UID.
|
ALIGN, ALPHA, DRAW_DOUBLE, DRAW_DOUBLE_ALWAYS, GLOW_RADIUS, LAYER, ROTATE, SYS_OBJECT, Z, ZOOM
EDITOR_FOLDER_INTERN
ANIM_SPEED, ANIMATION, BLOCKSVIEW, DIRECTION, EDIT_TYPE_NONE, FACE, HP, IS_ANIMATED, IS_TURNABLE, LAST_HEAL, LEVEL, NAME, NO_PASS, NO_PICK, SLAYING, SP, TITLE, TYPE
Constructor and Description |
---|
TestGameObject(TestArchetype archetype,
FaceObjectProviders faceObjectProviders,
AnimationObjects animationObjects)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
TestGameObject |
clone() |
int |
getLightRadius()
Returns the effective light radius of this game object.
|
protected TestGameObject |
getThis()
Returns
this as its real type. |
boolean |
isDrawDouble(boolean drawDoubleFaces)
Returns whether to draw this game object with double height.
|
boolean |
isScripted()
Returns whether this GameObject has one or more scripted events defined.
|
void |
propagateElevation(BaseObject<?,?,?,?> gameObject)
If there is elevation data in the other game object, move it to here.
|
boolean |
usesDirection()
Return whether this base object uses the "direction" attribute.
|
facesReloaded, getDoubleImage, getTransparentDoubleImage, getTransparentImage, isEqual, setObjectFace
asGameObject, getArchetype, getAttributeString, getContainer, getContainerGameObject, getEffectiveFaceName, getMapSquare, getNext, getPrev, getTopContainer, hasUndefinedArchetype, insertAfter, insertBefore, isBottom, isInContainer, isTop, markModified, moveBottom, moveDown, moveTop, moveUp, newInstance, notifyBeginChange, notifyEndChange, notifyTransientChange, remove, setArchetype, setContainer, visit
addMsgTextLine, addObjectText, addTailPart, beginGameObjectChange, countInvObjects, endGameObjectChange, getAnimName, getAttributeDouble, getAttributeDouble, getAttributeInt, getAttributeInt, getAttributeKeys, getAttributeLong, getAttributeLong, getAttributeString, getAttributeValue, getBestName, getDirection, getEditType, getFaceName, getFaceObjName, getFaceObjSource, getHead, getLoreText, getMapLocation, getMapX, getMapY, getMaxX, getMaxY, getMinX, getMinY, getMsgText, getMulti, getMultiNext, getMultiRefCount, getNormalImage, getObjectText, getObjName, getSizeX, getSizeY, getTypeNo, hasAttribute, hasAttribute, isDefaultGameObject, isHead, isMulti, isTail, removeAttribute, removeTailParts, setAttributeInt, setAttributeString, setEditType, setLoreText, setMapX, setMapY, setMsgText, setMulti, setObjectText, setThisContainer, toString, transientGameObjectChange, updateArchetype
addFirst, addLast, getFirst, getLast, getNext, getPrev, hasSameContents, insertAfter, insertBefore, isBottom, isEmpty, isTop, iterator, moveBottom, moveDown, moveTop, moveUp, recursive, remove, removeAll, replace, reverse, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addFirst, addLast, getFirst, getLast, isEmpty, iterator, recursive, removeAll, reverse
addMsgTextLine, addObjectText, addTailPart, countInvObjects, getAnimName, getAttributeDouble, getAttributeInt, getAttributeLong, getBestName, getDirection, getEditType, getFaceName, getFaceObjName, getFaceObjSource, getHead, getLoreText, getMapLocation, getMapX, getMapY, getMaxX, getMaxY, getMinX, getMinY, getMsgText, getMultiNext, getMultiRefCount, getNormalImage, getObjectText, getObjName, getSizeX, getSizeY, getTypeNo, hasAttribute, isDefaultGameObject, isHead, isMulti, isTail, removeTailParts, setAttributeString, setEditType, setLoreText, setMapX, setMapY, setMsgText, setMulti, setObjectText, toString
getAttributeDouble, getAttributeInt, getAttributeLong, getAttributeString, hasAttribute, removeAttribute, setAttributeInt
private static final long serialVersionUID
public TestGameObject(@NotNull TestArchetype archetype, @NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects)
archetype
- the base archetypefaceObjectProviders
- the face object providers for looking up
facesanimationObjects
- the animation objects for looking up animationspublic boolean usesDirection()
usesDirection
in interface BaseObject<TestGameObject,TestMapArchObject,TestArchetype,TestGameObject>
usesDirection
in class DefaultIsoGameObject<TestGameObject,TestMapArchObject,TestArchetype>
public boolean isDrawDouble(boolean drawDoubleFaces)
isDrawDouble
in class DefaultIsoGameObject<TestGameObject,TestMapArchObject,TestArchetype>
drawDoubleFaces
- whether the "draw double faces" map view setting
is enabledpublic int getLightRadius()
0
if this object does
not emit lightpublic void propagateElevation(@NotNull BaseObject<?,?,?,?> gameObject)
gameObject
- the other game objectpublic boolean isScripted()
true
if this GameObject has one or more scripted
events, otherwise false
@NotNull public TestGameObject clone()
clone
in interface BaseObject<TestGameObject,TestMapArchObject,TestArchetype,TestGameObject>
clone
in class DefaultIsoGameObject<TestGameObject,TestMapArchObject,TestArchetype>
@NotNull protected TestGameObject getThis()
this
as its real type.getThis
in class AbstractBaseObject<TestGameObject,TestMapArchObject,TestArchetype,TestGameObject>
this
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.