Go to the documentation of this file.
20 package net.sf.gridarta.model.archetype;
31 import org.jetbrains.annotations.NotNull;
32 import org.jetbrains.annotations.Nullable;
38 public abstract class AbstractArchetype<G
extends GameObject<G, A, R>, A extends
MapArchObject<A>, R extends
Archetype<G, A, R>> extends
AbstractBaseObject<G, A, R, R> implements
Archetype<G, A, R> {
118 throw new IllegalStateException(
"not inside a container");
129 public String
getAttributeString(@NotNull
final String attributeName,
final boolean queryArchetype) {
131 return result ==
null ?
"" : result;
137 final String normalizedFaceName =
faceName.isEmpty() ? null :
faceName.intern();
139 return normalizedFaceName !=
null && !normalizedFaceName.isEmpty() ? normalizedFaceName :
null;
174 @SuppressWarnings(
"unchecked")
177 return clone.getThis();
189 return gameObjectFactory.createGameObject(
getThis());
194 baseObjectVisitor.visit(
this);
void setLowestPart(final boolean isLowestPart)
void notifyTransientChange()
void setMultiShapeID(final int multiShapeID)
MapSquare< G, A, R > getMapSquare()
String getEffectiveFaceName(@NotNull final String faceName)
void setEditorFolder(@Nullable final String editorFolder)
MultiArchData< G, A, R, T > getMulti()
String getAttributeString(@NotNull final String attributeName, final boolean queryArchetype)
void setMultiX(final int multiX)
void setMultiShapeID(final int multiShapeID)
String getAttributeValue(@NotNull final String attributeName)
MapSquare< G, A, R > getMapSquareOptional()
void setMultiY(final int multiY)
void setArchetypeName(@NotNull final String archetypeName)
void setMultiPartNr(final int multiPartNr)
static final long serialVersionUID
MultiArchData< G, A, R, T > multi
G newInstance(@NotNull final GameObjectFactory< G, A, R > gameObjectFactory)
final AnimationObjects animationObjects
AbstractArchetype(@NotNull final String archetypeName, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects)
void visit(@NotNull final BaseObjectVisitor< G, A, R > baseObjectVisitor)
final transient FaceObjectProviders faceObjectProviders
String getArchetypeName()