public interface ProjectFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
Modifier and Type | Method and Description |
---|---|
int |
getDoubleFaceOffset()
Returns the offset for drawing double faces.
|
boolean |
getIncludeFaceNumbers()
Returns whether the face file contains face numbers.
|
java.lang.String |
getScriptsDir()
Returns the default directory for editor scripts.
|
@Nullable java.lang.String |
getSpellFile()
Returns the spell file name to load.
|
int |
getSpellType()
Returns the archetype type for game object spells.
|
@NotNull AttributeRangeChecker<G,A,R> |
loadAttributeRangeChecker(@NotNull ErrorViewCollector errorViewCollector,
@NotNull GameObjectMatchers gameObjectMatchers,
@NotNull ValidatorPreferences validatorPreferences)
Loads the attribute range checker for map validation.
|
@NotNull ArchetypeFactory<G,A,R> |
newArchetypeFactory(@NotNull FaceObjectProviders faceObjectProviders,
@NotNull AnimationObjects animationObjects)
Creates a new
ArchetypeFactory instance. |
AbstractArchetypeParser<G,A,R,?> |
newArchetypeParser(@NotNull ErrorView errorView,
GameObjectParser<G,A,R> gameObjectParser,
AnimationObjects animationObjects,
ArchetypeSet<G,A,R> archetypeSet,
@NotNull GameObjectFactory<G,A,R> gameObjectFactory,
@NotNull ProjectSettings projectSettings,
@NotNull SmoothFaces smoothFaces)
Creates a new
AbstractArchetypeParser instance. |
@NotNull ArchetypeSet<G,A,R> |
newArchetypeSet(@NotNull ProjectSettings projectSettings,
@NotNull ArchetypeFactory<G,A,R> archetypeFactory)
Creates a new
ArchetypeSet instance. |
@NotNull GameObjectFactory<G,A,R> |
newGameObjectFactory(@NotNull FaceObjectProviders faceObjectProviders,
@NotNull AnimationObjects animationObjects,
@NotNull ArchetypeTypeSet archetypeTypeSet)
Creates a new
GameObjectFactory instance. |
@NotNull GameObjectParserFactory<G,A,R> |
newGameObjectParserFactory(@NotNull GameObjectFactory<G,A,R> gameObjectFactory,
@NotNull ArchetypeSet<G,A,R> archetypeSet,
@NotNull ArchetypeTypeSet archetypeTypeSet)
Creates a new
GameObjectParserFactory instance. |
@NotNull MapArchObjectFactory<A> |
newMapArchObjectFactory(@NotNull ProjectSettings projectSettings)
Creates a new
MapArchObjectFactory instance. |
@NotNull MapArchObjectParserFactory<A> |
newMapArchObjectParserFactory()
Creates a new
MapArchObjectParserFactory instance. |
@NotNull MapControlFactory<G,A,R> |
newMapControlFactory(@NotNull MapWriter<G,A,R> mapWriter,
@NotNull ProjectSettings projectSettings,
@NotNull MapModelFactory<G,A,R> mapModelFactory)
Creates a new
MapControlFactory instance. |
@NotNull AbstractResources<G,A,R> |
newResources(@NotNull GameObjectParser<G,A,R> gameObjectParser,
@NotNull ArchetypeSet<G,A,R> archetypeSet,
@NotNull AbstractArchetypeParser<G,A,R,?> archetypeParser,
@NotNull FaceObjects faceObjects,
@NotNull AnimationObjects animationObjects,
@NotNull ArchFaceProvider archFaceProvider,
@NotNull FaceObjectProviders faceObjectProviders,
@NotNull SmoothFaces smoothFaces)
Creates a new
AbstractResources instance. |
int getDoubleFaceOffset()
boolean getIncludeFaceNumbers()
@NotNull @NotNull ArchetypeFactory<G,A,R> newArchetypeFactory(@NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull AnimationObjects animationObjects)
ArchetypeFactory
instance.faceObjectProviders
- the face object providers for looking up
facesanimationObjects
- the animation objects for looking up animations@NotNull @NotNull GameObjectFactory<G,A,R> newGameObjectFactory(@NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull AnimationObjects animationObjects, @NotNull @NotNull ArchetypeTypeSet archetypeTypeSet)
GameObjectFactory
instance.faceObjectProviders
- the face object providers to useanimationObjects
- the animation objects for looking up animationsarchetypeTypeSet
- the archetype type set for looking up archetype
types@NotNull @NotNull ArchetypeSet<G,A,R> newArchetypeSet(@NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull ArchetypeFactory<G,A,R> archetypeFactory)
ArchetypeSet
instance.projectSettings
- the project settings to usearchetypeFactory
- the archetype factory to use@NotNull @NotNull GameObjectParserFactory<G,A,R> newGameObjectParserFactory(@NotNull @NotNull GameObjectFactory<G,A,R> gameObjectFactory, @NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull @NotNull ArchetypeTypeSet archetypeTypeSet)
GameObjectParserFactory
instance.gameObjectFactory
- the game object parser factory to usearchetypeSet
- the archetype set for looking up archetypesarchetypeTypeSet
- the archetype type set for sorting attributes on
saveAbstractArchetypeParser<G,A,R,?> newArchetypeParser(@NotNull @NotNull ErrorView errorView, GameObjectParser<G,A,R> gameObjectParser, AnimationObjects animationObjects, ArchetypeSet<G,A,R> archetypeSet, @NotNull @NotNull GameObjectFactory<G,A,R> gameObjectFactory, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull SmoothFaces smoothFaces)
AbstractArchetypeParser
instance.errorView
- the error view for reporting errorsgameObjectParser
- the game object parser to useanimationObjects
- the animation objects to usearchetypeSet
- the archetype set to usegameObjectFactory
- the game object factory to useprojectSettings
- the project settings to usesmoothFaces
- the smooth faces to use@NotNull @NotNull AbstractResources<G,A,R> newResources(@NotNull @NotNull GameObjectParser<G,A,R> gameObjectParser, @NotNull @NotNull ArchetypeSet<G,A,R> archetypeSet, @NotNull @NotNull AbstractArchetypeParser<G,A,R,?> archetypeParser, @NotNull @NotNull FaceObjects faceObjects, @NotNull @NotNull AnimationObjects animationObjects, @NotNull @NotNull ArchFaceProvider archFaceProvider, @NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull SmoothFaces smoothFaces)
AbstractResources
instance.gameObjectParser
- the game object parser to usearchetypeSet
- the archetype set to usearchetypeParser
- the archetype parser to usefaceObjects
- the face objects to useanimationObjects
- the animation objects to usearchFaceProvider
- the arch face provider to usefaceObjectProviders
- the face object providers for looking up
facessmoothFaces
- the smooth faces to use@NotNull @NotNull MapArchObjectParserFactory<A> newMapArchObjectParserFactory()
MapArchObjectParserFactory
instance.@NotNull @NotNull MapArchObjectFactory<A> newMapArchObjectFactory(@NotNull @NotNull ProjectSettings projectSettings)
MapArchObjectFactory
instance.projectSettings
- the project settings to use@NotNull @NotNull AttributeRangeChecker<G,A,R> loadAttributeRangeChecker(@NotNull @NotNull ErrorViewCollector errorViewCollector, @NotNull @NotNull GameObjectMatchers gameObjectMatchers, @NotNull @NotNull ValidatorPreferences validatorPreferences)
errorViewCollector
- the error view collector to usegameObjectMatchers
- the defined game object matchersvalidatorPreferences
- the validator preferences to use@NotNull @NotNull MapControlFactory<G,A,R> newMapControlFactory(@NotNull @NotNull MapWriter<G,A,R> mapWriter, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull MapModelFactory<G,A,R> mapModelFactory)
MapControlFactory
instance.mapWriter
- the map writer to useprojectSettings
- the project settings to usemapModelFactory
- the map model factory to useint getSpellType()
0
to not load game object spells@Nullable @Nullable java.lang.String getSpellFile()
null
to not load numbered spellsjava.lang.String getScriptsDir()