public abstract class AbstractArchetypeBuilder<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractArchetypeBuilder(@NotNull GameObjectFactory<G,A,R> gameObjectFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addLast(G invObject) |
void |
addObjectText(@NotNull java.lang.String line) |
R |
finish()
Finishes archetype construction.
|
protected R |
getArchetype() |
@NotNull java.lang.String |
getArchetypeName() |
void |
init(R prototype,
@NotNull ErrorViewCollector errorViewCollector) |
void |
reInit(@NotNull java.lang.String archetypeName) |
void |
setMsgText(@NotNull java.lang.String msgText) |
void |
setMultiX(int multiX) |
void |
setMultiY(int multiY) |
protected AbstractArchetypeBuilder(@NotNull @NotNull GameObjectFactory<G,A,R> gameObjectFactory)
gameObjectFactory
- the game object factory for creating the new
archetypepublic void init(@Nullable R prototype, @NotNull @NotNull ErrorViewCollector errorViewCollector)
prototype
- the base archetype for artifacts; null
when
parsing archetypeserrorViewCollector
- all error and warning messages will be added to
this error view collectorpublic void reInit(@NotNull @NotNull java.lang.String archetypeName)
public void setMsgText(@NotNull @NotNull java.lang.String msgText)
@NotNull public @NotNull java.lang.String getArchetypeName()
public void addObjectText(@NotNull @NotNull java.lang.String line)
public void addLast(@NotNull G invObject)
@NotNull public R finish()
public void setMultiX(int multiX)
public void setMultiY(int multiY)
@NotNull protected R getArchetype()