Gridarta Editor
net.sf.gridarta.var.atrinik.model.collectable.AtrinikArchetypeSetCollectable Class Reference

A net.sf.gridarta.model.collectable.Collectable that creates the Atrinik specific "archetypes" file. More...

+ Inheritance diagram for net.sf.gridarta.var.atrinik.model.collectable.AtrinikArchetypeSetCollectable:
+ Collaboration diagram for net.sf.gridarta.var.atrinik.model.collectable.AtrinikArchetypeSetCollectable:

Public Member Functions

 AtrinikArchetypeSetCollectable (@NotNull final ArchetypeSet< GameObject, MapArchObject, Archetype > archetypeSet, @NotNull final GameObjectParser< GameObject, MapArchObject, Archetype > gameObjectParser)
 Creates a new instance. More...
 
- Public Member Functions inherited from net.sf.gridarta.model.collectable.AbstractArchetypeSetCollectable< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >
void collect (@NotNull final Progress progress, @NotNull final File collectedDirectory) throws IOException
 Collects information. More...
 

Protected Member Functions

int collectArchetype (@NotNull final Archetype archetype, @NotNull final Writer out) throws IOException
 
- Protected Member Functions inherited from net.sf.gridarta.model.collectable.AbstractArchetypeSetCollectable< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >
 AbstractArchetypeSetCollectable (@NotNull final ArchetypeSet< G, A, R > archetypeSet, @NotNull final String archFile)
 Creates a new instance. More...
 
abstract int collectArchetype (@NotNull R archetype, @NotNull Writer out) throws IOException
 Collects an Archetype: writes its definition into a writer. More...
 

Static Private Member Functions

static void writeArchetype (@NotNull final Appendable appendable, @NotNull final net.sf.gridarta.model.archetype.Archetype< GameObject, MapArchObject, Archetype > archetype, final boolean isHeadPart, @NotNull final GameObjectParser< GameObject, MapArchObject, Archetype > gameObjectParser) throws IOException
 Writes an Archetype. More...
 

Private Attributes

final GameObjectParser< GameObject, MapArchObject, ArchetypegameObjectParser
 The GameObjectParser for writing inventory game objects. More...
 

Detailed Description

A net.sf.gridarta.model.collectable.Collectable that creates the Atrinik specific "archetypes" file.

Author
Christian Hujer
Andreas Kirschbaum

Definition at line 39 of file AtrinikArchetypeSetCollectable.java.

Constructor & Destructor Documentation

◆ AtrinikArchetypeSetCollectable()

net.sf.gridarta.var.atrinik.model.collectable.AtrinikArchetypeSetCollectable.AtrinikArchetypeSetCollectable ( @NotNull final ArchetypeSet< GameObject, MapArchObject, Archetype archetypeSet,
@NotNull final GameObjectParser< GameObject, MapArchObject, Archetype gameObjectParser 
)

Member Function Documentation

◆ collectArchetype()

int net.sf.gridarta.var.atrinik.model.collectable.AtrinikArchetypeSetCollectable.collectArchetype ( @NotNull final Archetype  archetype,
@NotNull final Writer  out 
) throws IOException
protected

◆ writeArchetype()

static void net.sf.gridarta.var.atrinik.model.collectable.AtrinikArchetypeSetCollectable.writeArchetype ( @NotNull final Appendable  appendable,
@NotNull final net.sf.gridarta.model.archetype.Archetype< GameObject, MapArchObject, Archetype archetype,
final boolean  isHeadPart,
@NotNull final GameObjectParser< GameObject, MapArchObject, Archetype gameObjectParser 
) throws IOException
staticprivate

Writes an Archetype.

Parameters
appendablethe appendable to write to
archetypethe archetype to write
isHeadPartwhether this part is the head part
gameObjectParserthe game object parser for writing the inventory
Exceptions
IOExceptionif an I/O error occurs

Definition at line 82 of file AtrinikArchetypeSetCollectable.java.

References net.sf.gridarta.var.atrinik.model.collectable.AtrinikArchetypeSetCollectable.gameObjectParser.

Referenced by net.sf.gridarta.var.atrinik.model.collectable.AtrinikArchetypeSetCollectable.collectArchetype().

+ Here is the caller graph for this function:

Member Data Documentation

◆ gameObjectParser


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