public class DefaultArchetype extends AbstractArchetype<GameObject,MapArchObject,Archetype> implements Archetype
Archetype
.TYPE_ALTAR, TYPE_ALTAR_TRIGGER, TYPE_APPLYABLE_LIGHT, TYPE_BUTTON, TYPE_CONNECTION_SENSOR, TYPE_CONTAINER, TYPE_CREATOR, TYPE_DETECTOR, TYPE_DIRECTOR, TYPE_ENVIRONMENT_SENSOR, TYPE_EVENT_OBJECT, TYPE_EXIT, TYPE_FLOOR, TYPE_GATE, TYPE_HANDLE, TYPE_HANDLE_TRIGGER, TYPE_INVENTORY_CHECKER, TYPE_LIGHT_SOURCE, TYPE_LOCKED_DOOR, TYPE_MAGIC_WALL, TYPE_MARKER, TYPE_MOB, TYPE_MOOD_FLOOR, TYPE_PEDESTAL, TYPE_PIT, TYPE_SHOP_FLOOR, TYPE_SIGN_MAGIC_MOUTH, TYPE_SPAWN_POINT, TYPE_SPAWN_POINT_MOB, TYPE_SPECIAL_KEY, TYPE_TELEPORTER, TYPE_TIMED_GATE, TYPE_TIMER, TYPE_TRIGGER_BUTTON, TYPE_TRIGGER_PEDESTAL
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(@NotNull java.lang.String archetypeName,
@NotNull FaceObjectProviders faceObjectProviders,
@NotNull AnimationObjects animationObjects)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull DefaultArchetype |
clone()
Creates a clone of this base object.
|
protected @NotNull 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, getMapSquareOptional, 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, 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 @NotNull java.lang.String archetypeName, @NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @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 @NotNull DefaultArchetype clone()
BaseObject
clone
in interface BaseObject<GameObject,MapArchObject,Archetype,Archetype>
clone
in class AbstractArchetype<GameObject,MapArchObject,Archetype>
public boolean usesDirection()
BaseObject
usesDirection
in interface BaseObject<GameObject,MapArchObject,Archetype,Archetype>
@NotNull protected @NotNull Archetype getThis()
AbstractBaseObject
this
as its real type.getThis
in class AbstractBaseObject<GameObject,MapArchObject,Archetype,Archetype>
this
public boolean isUndefinedArchetype()
Archetype
isUndefinedArchetype
in interface Archetype<GameObject,MapArchObject,Archetype>
true
if this archetype denotes an undefined archetype