public class DefaultArchetype extends AbstractArchetype<GameObject,MapArchObject,Archetype> implements Archetype
Archetype
.SUBTYPE_EVENT_CONNECTOR_TRIGGER, TYPE_ALTAR, TYPE_AMULET, TYPE_BOOTS, TYPE_BRACERS, TYPE_BREASTPLATE_ARMOR, TYPE_BUTTON, TYPE_CLOAK, TYPE_CONTAINER, TYPE_CREATOR, TYPE_DETECTOR, TYPE_DIRECTOR, TYPE_DUPLICATOR, TYPE_EVENT_CONNECTOR, TYPE_EXIT, TYPE_FLOOR, TYPE_GATE, TYPE_GIRDLE, TYPE_GLOVES, TYPE_HANDLE, TYPE_HELMET, TYPE_INVENTORY_CHECKER, TYPE_LOCKED_DOOR, TYPE_MAGIC_EAR, TYPE_MAGIC_MOUTH, TYPE_MAGIC_WALL, TYPE_MARKER, TYPE_MISC, TYPE_MOOD_FLOOR, TYPE_PEDESTAL, TYPE_PEDESTAL_TRIGGER, TYPE_PIT, TYPE_RING, TYPE_SHIELD, TYPE_SPECIAL_KEY, TYPE_SPELL, TYPE_TELEPORTER, TYPE_TIMED_GATE, TYPE_TRAP, TYPE_TRIGGER, TYPE_TRIGGER_ALTAR, TYPE_TRIGGER_BUTTON, TYPE_TRIGGER_MARKER, TYPE_WALL, TYPE_WEAPON
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 |
---|
DefaultArchetype(java.lang.String archetypeName,
FaceObjectProviders faceObjectProviders,
AnimationObjects animationObjects)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
DefaultArchetype |
clone() |
protected Archetype |
getThis()
Returns
this as its real type. |
boolean |
isUndefinedArchetype()
Return whether this archetype denotes an undefined archetype.
|
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
public DefaultArchetype(@NotNull java.lang.String archetypeName, @NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects)
archetypeName
- the name of the base archetypefaceObjectProviders
- the face face object providers for looking up
facesanimationObjects
- the animation objects for looking up animations@NotNull public DefaultArchetype clone()
clone
in interface BaseObject<GameObject,MapArchObject,Archetype,Archetype>
clone
in class AbstractArchetype<GameObject,MapArchObject,Archetype>
public boolean usesDirection()
usesDirection
in interface BaseObject<GameObject,MapArchObject,Archetype,Archetype>
@NotNull protected Archetype getThis()
this
as its real type.getThis
in class AbstractBaseObject<GameObject,MapArchObject,Archetype,Archetype>
this
public boolean isUndefinedArchetype()
isUndefinedArchetype
in interface Archetype<GameObject,MapArchObject,Archetype>
true
if this archetype denotes an undefined archetype