public class CrossfireArchetypeSetCollectable extends AbstractArchetypeSetCollectable<GameObject,MapArchObject,Archetype>
Collectable
that creates the
Crossfire specific "archetypes" file.Constructor and Description |
---|
CrossfireArchetypeSetCollectable(@NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet,
@NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected int |
collectArchetype(@NotNull Archetype archetype,
@NotNull java.io.Writer out)
Collects an
Archetype : writes its definition into a writer. |
collect
public CrossfireArchetypeSetCollectable(@NotNull @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull @NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser)
archetypeSet
- the archetype set to collectgameObjectParser
- the game object parser for writing inventory game
objectsprotected int collectArchetype(@NotNull @NotNull Archetype archetype, @NotNull @NotNull java.io.Writer out) throws java.io.IOException
AbstractArchetypeSetCollectable
Archetype
: writes its definition into a writer.collectArchetype
in class AbstractArchetypeSetCollectable<GameObject,MapArchObject,Archetype>
archetype
- the archetypeout
- the writerjava.io.IOException
- if an I/O error occurs