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.
|
java.lang.String |
getSpellFile()
Returns the spell file name to load.
|
int |
getSpellType()
Returns the archetype type for game object spells.
|
AttributeRangeChecker<G,A,R> |
loadAttributeRangeChecker(ErrorViewCollector errorViewCollector,
GameObjectMatchers gameObjectMatchers,
ValidatorPreferences validatorPreferences)
Loads the attribute range checker for map validation.
|
ArchetypeFactory<G,A,R> |
newArchetypeFactory(FaceObjectProviders faceObjectProviders,
AnimationObjects animationObjects)
Creates a new
ArchetypeFactory instance. |
AbstractArchetypeParser<G,A,R,?> |
newArchetypeParser(ErrorView errorView,
GameObjectParser<G,A,R> gameObjectParser,
AnimationObjects animationObjects,
ArchetypeSet<G,A,R> archetypeSet,
GameObjectFactory<G,A,R> gameObjectFactory,
ProjectSettings projectSettings,
SmoothFaces smoothFaces)
Creates a new
AbstractArchetypeParser instance. |
ArchetypeSet<G,A,R> |
newArchetypeSet(ProjectSettings projectSettings,
ArchetypeFactory<G,A,R> archetypeFactory)
Creates a new
ArchetypeSet instance. |
GameObjectFactory<G,A,R> |
newGameObjectFactory(FaceObjectProviders faceObjectProviders,
AnimationObjects animationObjects,
ArchetypeTypeSet archetypeTypeSet)
Creates a new
GameObjectFactory instance. |
GameObjectParserFactory<G,A,R> |
newGameObjectParserFactory(GameObjectFactory<G,A,R> gameObjectFactory,
ArchetypeSet<G,A,R> archetypeSet,
ArchetypeTypeSet archetypeTypeSet)
Creates a new
GameObjectParserFactory instance. |
MapArchObjectFactory<A> |
newMapArchObjectFactory(ProjectSettings projectSettings)
Creates a new
MapArchObjectFactory instance. |
MapArchObjectParserFactory<A> |
newMapArchObjectParserFactory()
Creates a new
MapArchObjectParserFactory instance. |
MapControlFactory<G,A,R> |
newMapControlFactory(MapWriter<G,A,R> mapWriter,
ProjectSettings projectSettings,
MapModelFactory<G,A,R> mapModelFactory)
Creates a new
MapControlFactory instance. |
AbstractResources<G,A,R> |
newResources(GameObjectParser<G,A,R> gameObjectParser,
ArchetypeSet<G,A,R> archetypeSet,
AbstractArchetypeParser<G,A,R,?> archetypeParser,
FaceObjects faceObjects,
AnimationObjects animationObjects,
ArchFaceProvider archFaceProvider,
FaceObjectProviders faceObjectProviders,
SmoothFaces smoothFaces)
Creates a new
AbstractResources instance. |
int getDoubleFaceOffset()
boolean getIncludeFaceNumbers()
@NotNull ArchetypeFactory<G,A,R> newArchetypeFactory(@NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects)
ArchetypeFactory
instance.faceObjectProviders
- the face object providers for looking up
facesanimationObjects
- the animation objects for looking up animations@NotNull GameObjectFactory<G,A,R> newGameObjectFactory(@NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects, @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 ArchetypeSet<G,A,R> newArchetypeSet(@NotNull ProjectSettings projectSettings, @NotNull ArchetypeFactory<G,A,R> archetypeFactory)
ArchetypeSet
instance.projectSettings
- the project settings to usearchetypeFactory
- the archetype factory to use@NotNull GameObjectParserFactory<G,A,R> newGameObjectParserFactory(@NotNull GameObjectFactory<G,A,R> gameObjectFactory, @NotNull ArchetypeSet<G,A,R> archetypeSet, @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 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)
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 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)
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 MapArchObjectParserFactory<A> newMapArchObjectParserFactory()
MapArchObjectParserFactory
instance.@NotNull MapArchObjectFactory<A> newMapArchObjectFactory(@NotNull ProjectSettings projectSettings)
MapArchObjectFactory
instance.projectSettings
- the project settings to use@NotNull AttributeRangeChecker<G,A,R> loadAttributeRangeChecker(@NotNull ErrorViewCollector errorViewCollector, @NotNull GameObjectMatchers gameObjectMatchers, @NotNull ValidatorPreferences validatorPreferences)
errorViewCollector
- the error view collector to usegameObjectMatchers
- the defined game object matchersvalidatorPreferences
- the validator preferences to use@NotNull MapControlFactory<G,A,R> newMapControlFactory(@NotNull MapWriter<G,A,R> mapWriter, @NotNull ProjectSettings projectSettings, @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 java.lang.String getSpellFile()
null
to not load numbered spellsjava.lang.String getScriptsDir()