net.sf.gridarta.model.archetype
public class TestUndefinedArchetype extends AbstractArchetype<TestGameObject,TestMapArchObject,TestArchetype> implements TestArchetype
Archetype
implementation for testing purposes.Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The serial version UID.
|
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 |
---|
TestUndefinedArchetype(String archetypeName,
FaceObjectProviders faceObjectProviders,
AnimationObjects animationObjects)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
TestArchetype |
clone() |
protected TestArchetype |
getThis()
Returns
this as its real type. |
boolean |
isUndefinedArchetype()
Return whether this archetype denotes an undefined archetype.
|
void |
setUsesDirection(boolean usesDirection)
Sets the return value of
BaseObject.usesDirection() . |
boolean |
usesDirection()
Return whether this base object uses the "direction" attribute.
|
asGameObject, getArchetype, getArchetypeName, getAttributeString, getEditorFolder, getEffectiveFaceName, getMapSquare, getMultiPartNr, getMultiShapeID, getMultiX, getMultiY, isArtifact, isLowestPart, newInstance, notifyBeginChange, notifyEndChange, notifyTransientChange, setArchetypeName, setArtifact, setEditorFolder, setLowestPart, setMultiPartNr, setMultiShapeID, setMultiX, setMultiY, visit
addMsgTextLine, addObjectText, addTailPart, beginGameObjectChange, countInvObjects, endGameObjectChange, facesReloaded, 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, isEqual, isHead, isMulti, isTail, removeAttribute, removeTailParts, setAttributeInt, setAttributeString, setEditType, setLoreText, setMapX, setMapY, setMsgText, setMulti, setObjectFace, 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, getArchetypeName, getAttributeKeys, getEditorFolder, getMultiPartNr, getMultiShapeID, getMultiX, getMultiY, isArtifact, isLowestPart, iterator, setArchetypeName, setArtifact, setEditorFolder, setLowestPart, setMultiPartNr, setMultiShapeID, setMultiX, setMultiY
addMsgTextLine, addObjectText, addTailPart, countInvObjects, facesReloaded, getAnimName, getArchetype, getAttributeDouble, getAttributeInt, getAttributeLong, getAttributeString, 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, isEqual, isHead, isMulti, isTail, newInstance, notifyBeginChange, notifyEndChange, notifyTransientChange, removeTailParts, setAttributeString, setEditType, setLoreText, setMapX, setMapY, setMsgText, setMulti, setObjectFace, setObjectText, toString, visit
getAttributeDouble, getAttributeInt, getAttributeLong, getAttributeString, hasAttribute, removeAttribute, setAttributeInt
private static final long serialVersionUID
public TestUndefinedArchetype(@NotNull String archetypeName, @NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects)
archetypeName
- the name of the archetypefaceObjectProviders
- the face object providers for looking up
facesanimationObjects
- the animation objects for looking up animations@NotNull protected TestArchetype getThis()
this
as its real type.getThis
in class AbstractBaseObject<TestGameObject,TestMapArchObject,TestArchetype,TestArchetype>
this
public void setUsesDirection(boolean usesDirection)
BaseObject.usesDirection()
.setUsesDirection
in interface TestArchetype
usesDirection
- the return valuepublic boolean isUndefinedArchetype()
isUndefinedArchetype
in interface Archetype<TestGameObject,TestMapArchObject,TestArchetype>
true
if this archetype denotes an undefined
archetypepublic boolean usesDirection()
usesDirection
in interface BaseObject<TestGameObject,TestMapArchObject,TestArchetype,TestArchetype>
@NotNull public TestArchetype clone()
clone
in interface TestArchetype
clone
in interface BaseObject<TestGameObject,TestMapArchObject,TestArchetype,TestArchetype>
clone
in class AbstractArchetype<TestGameObject,TestMapArchObject,TestArchetype>
Feedback: webmaster
© 2003-2010 The Gridarta Developers. All rights reserved.