Gridarta Editor
net.sf.gridarta.model.archetype.TestUndefinedArchetype Class Reference

An undefined Archetype implementation for testing purposes. More...

+ Inheritance diagram for net.sf.gridarta.model.archetype.TestUndefinedArchetype:
+ Collaboration diagram for net.sf.gridarta.model.archetype.TestUndefinedArchetype:

Public Member Functions

TestUndefinedArchetype clone ()
 
boolean isUndefinedArchetype ()
 
void setUsesDirection (final boolean usesDirection)
 Sets the return value of usesDirection(). More...
 
 TestUndefinedArchetype (@NotNull final String archetypeName, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects)
 Creates a new instance. More...
 
boolean usesDirection ()
 
- Public Member Functions inherited from net.sf.gridarta.model.archetype.AbstractArchetype< TestGameObject, TestMapArchObject, TestArchetype >
asGameObject ()
 
clone ()
 
getArchetype ()
 
String getArchetypeName ()
 
String getAttributeString ( @NotNull final String attributeName, final boolean queryArchetype)
 
String getEditorFolder ()
 
MapSquare< G, A, R > getMapSquare ()
 
MapSquare< G, A, R > getMapSquareOptional ()
 
int getMultiPartNr ()
 
int getMultiShapeID ()
 
int getMultiX ()
 
int getMultiY ()
 
boolean isArtifact ()
 
boolean isLowestPart ()
 
newInstance ( @NotNull final GameObjectFactory< G, A, R > gameObjectFactory)
 
void notifyBeginChange ()
 @noinspection NoopMethodInAbstractClass More...
 
void notifyEndChange ()
 @noinspection NoopMethodInAbstractClass More...
 
void notifyTransientChange ()
 @noinspection NoopMethodInAbstractClass More...
 
void setArchetypeName ( @NotNull final String archetypeName)
 
void setArtifact ()
 
void setEditorFolder ( @Nullable final String editorFolder)
 
void setLowestPart (final boolean isLowestPart)
 
void setMultiPartNr (final int multiPartNr)
 
void setMultiShapeID (final int multiShapeID)
 
void setMultiX (final int multiX)
 
void setMultiY (final int multiY)
 
void visit ( @NotNull final BaseObjectVisitor< G, A, R > baseObjectVisitor)
 
- Public Member Functions inherited from net.sf.gridarta.model.archetype.Archetype< TestGameObject, TestMapArchObject, TestArchetype >
void addFirst ( @NotNull G gameObject)
 Adds the given GameObject at the beginning of this Container. More...
 
void addLast ( @NotNull G gameObject)
 Adds the given GameObject at the end of this Container. More...
 
String getArchetypeName ()
 Returns the name of this archetype. More...
 
Collection< String > getAttributeKeys ()
 Returns all attribute keys of this archetype. More...
 
String getEditorFolder ()
 Returns the editor folder. More...
 
int getMultiPartNr ()
 Returns the multi part id. More...
 
int getMultiShapeID ()
 Returns the multi shape id. More...
 
int getMultiX ()
 Returns the x-distance of this part to the head part. More...
 
int getMultiY ()
 Returns the y-distance of this part to the head part. More...
 
boolean isArtifact ()
 Returns whether this GameObject is an Artifact. More...
 
boolean isLowestPart ()
 Returns whether this part has the smallest y coordinate when painting the image. More...
 
boolean isUndefinedArchetype ()
 Return whether this archetype denotes an undefined archetype. More...
 
Iterator< G > iterator ()
 Returns all inventory objects. More...
 
void setArchetypeName ( @NotNull String archetypeName)
 Sets the name of this archetype. More...
 
void setArtifact ()
 Converts this game object into an artifact. More...
 
void setEditorFolder ( @Nullable String editorFolder)
 Set the editor folder. More...
 
void setLowestPart (boolean isLowestPart)
 Sets whether this part has the smallest y coordinate when painting the image. More...
 
void setMultiPartNr (int multiPartNr)
 Sets the multi part id. More...
 
void setMultiShapeID (int multiShapeID)
 Sets the multi shape id. More...
 
void setMultiX (int multiX)
 Sets the x-position of this part of a multi-part object. More...
 
void setMultiY (int multiY)
 Sets the y-position of this part of a multi-part object. More...
 

Protected Member Functions

TestArchetype getThis ()
 
- Protected Member Functions inherited from net.sf.gridarta.model.archetype.AbstractArchetype< TestGameObject, TestMapArchObject, TestArchetype >
 AbstractArchetype ( @NotNull final String archetypeName, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final AnimationObjects animationObjects)
 Creates a new instance. More...
 
String getEffectiveFaceName ( @NotNull final String faceName)
 Returns the effective face name for faceName for a given real face name. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

An undefined Archetype implementation for testing purposes.

Author
Andreas Kirschbaum

Definition at line 32 of file TestUndefinedArchetype.java.

Constructor & Destructor Documentation

◆ TestUndefinedArchetype()

net.sf.gridarta.model.archetype.TestUndefinedArchetype.TestUndefinedArchetype ( @NotNull final String  archetypeName,
@NotNull final FaceObjectProviders  faceObjectProviders,
@NotNull final AnimationObjects  animationObjects 
)

Creates a new instance.

Parameters
archetypeNamethe name of the archetype
faceObjectProvidersthe face object providers for looking up faces
animationObjectsthe animation objects for looking up animations

Definition at line 46 of file TestUndefinedArchetype.java.

References net.sf.gridarta.model.archetype.AbstractArchetype< TestGameObject, TestMapArchObject, TestArchetype >.archetypeName.

Member Function Documentation

◆ clone()

TestUndefinedArchetype net.sf.gridarta.model.archetype.TestUndefinedArchetype.clone ( )

Implements net.sf.gridarta.model.archetype.TestArchetype.

Definition at line 73 of file TestUndefinedArchetype.java.

References net.sf.gridarta.model.archetype.TestUndefinedArchetype.clone().

Referenced by net.sf.gridarta.model.archetype.TestUndefinedArchetype.clone().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getThis()

TestArchetype net.sf.gridarta.model.archetype.TestUndefinedArchetype.getThis ( )
protected

Definition at line 52 of file TestUndefinedArchetype.java.

◆ isUndefinedArchetype()

boolean net.sf.gridarta.model.archetype.TestUndefinedArchetype.isUndefinedArchetype ( )

Definition at line 62 of file TestUndefinedArchetype.java.

◆ setUsesDirection()

void net.sf.gridarta.model.archetype.TestUndefinedArchetype.setUsesDirection ( final boolean  usesDirection)

Sets the return value of usesDirection().

Parameters
usesDirectionthe return value

Implements net.sf.gridarta.model.archetype.TestArchetype.

Definition at line 57 of file TestUndefinedArchetype.java.

◆ usesDirection()

boolean net.sf.gridarta.model.archetype.TestUndefinedArchetype.usesDirection ( )

Definition at line 67 of file TestUndefinedArchetype.java.

Member Data Documentation

◆ serialVersionUID

final long net.sf.gridarta.model.archetype.TestUndefinedArchetype.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 37 of file TestUndefinedArchetype.java.


The documentation for this class was generated from the following file: