Class DefaultEditorFactory
- java.lang.Object
-
- net.sf.gridarta.var.crossfire.maincontrol.DefaultEditorFactory
-
- All Implemented Interfaces:
EditorFactory<GameObject,MapArchObject,Archetype>,ProjectFactory<GameObject,MapArchObject,Archetype>
public class DefaultEditorFactory extends java.lang.Object implements EditorFactory<GameObject,MapArchObject,Archetype>
AnEditorFactorythat creates Crossfire objects.
-
-
Constructor Summary
Constructors Constructor Description DefaultEditorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull net.sf.japi.swing.prefs.PreferencesGroupcreatePreferencesGroup(@NotNull ProjectSettings projectSettings, @NotNull EditorSettings editorSettings, @NotNull DelegatingMapValidator<GameObject,MapArchObject,Archetype> validators, @NotNull AppPreferencesModel appPreferencesModel, @NotNull ExitConnectorModel exitConnectorModel, @NotNull ConfigSourceFactory configSourceFactory)Creates a newPreferencesGroupinstance.@NotNull CacheFilesgetCacheFiles()Returns the cache files for icon and preview images.@Nullable java.lang.StringgetCompassIconName()Returns the icon name to display in the selected square view.@NotNull Direction @NotNull []getDirectionMap()Returns a map of relative direction to map window direction.intgetDoubleFaceOffset()Returns the offset for drawing double faces.@NotNull java.lang.StringgetGridartaJarFilename()Returns the filename of the editor's .jar file.booleangetIncludeFaceNumbers()Returns whether the face file contains face numbers.int @NotNull []getLockedItemsTypeNumbers()Returns the type numbers of game objects being locked items.@NotNull javax.swing.filechooser.FileFiltergetMapFileFilter()Returns the file filter for map files.@NotNull java.lang.StringgetScriptExtension()Returns the extension for script files.@NotNull javax.swing.filechooser.FileFiltergetScriptFileFilter()Returns theFileFilterfor script files.@NotNull java.lang.StringgetScriptName()Returns the display name for script files.@NotNull java.lang.StringgetScriptsDir()Returns the default directory for editor scripts.@Nullable java.lang.StringgetSpellFile()Returns the spell file name to load.intgetSpellType()Returns the archetype type for game object spells.intgetUndefinedSpellIndex()Returns the index for "no spell".booleanisAllowRandomMapParameters()Returns whether exit paths may point to random map parameters.booleanisAutoValidatorDefault()Returns whether the auto validator is enabled by default.booleanisCreateDirectionPane()Returns whether the direction panel should be created.@NotNull AttributeRangeChecker<GameObject,MapArchObject,Archetype>loadAttributeRangeChecker(@NotNull ErrorViewCollector errorViewCollector, @NotNull GameObjectMatchers gameObjectMatchers, @NotNull ValidatorPreferences validatorPreferences)Loads the attribute range checker for map validation.@NotNull ArchetypeFactory<GameObject,MapArchObject,Archetype>newArchetypeFactory(@NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects)Creates a newArchetypeFactoryinstance.ArchetypeParsernewArchetypeParser(@NotNull ErrorView errorView, GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, AnimationObjects animationObjects, ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory, @NotNull ProjectSettings projectSettings, @NotNull SmoothFaces smoothFaces)Creates a newAbstractArchetypeParserinstance.@NotNull ArchetypeSet<GameObject,MapArchObject,Archetype>newArchetypeSet(@NotNull ProjectSettings projectSettings, @NotNull ArchetypeFactory<GameObject,MapArchObject,Archetype> archetypeFactory)Creates a newArchetypeSetinstance.@NotNull GameObjectFactory<GameObject,MapArchObject,Archetype>newGameObjectFactory(@NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects, @NotNull ArchetypeTypeSet archetypeTypeSet)Creates a newGameObjectFactoryinstance.@NotNull GameObjectParserFactory<GameObject,MapArchObject,Archetype>newGameObjectParserFactory(@NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory, @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull ArchetypeTypeSet archetypeTypeSet)Creates a newGameObjectParserFactoryinstance.@NotNull MapArchObjectFactory<MapArchObject>newMapArchObjectFactory(@NotNull ProjectSettings projectSettings)Creates a newMapArchObjectFactoryinstance.@NotNull DefaultMapArchObjectParserFactorynewMapArchObjectParserFactory()Creates a newMapArchObjectParserFactoryinstance.@NotNull MapControlFactory<GameObject,MapArchObject,Archetype>newMapControlFactory(@NotNull MapWriter<GameObject,MapArchObject,Archetype> mapWriter, @NotNull ProjectSettings projectSettings, @NotNull MapModelFactory<GameObject,MapArchObject,Archetype> mapModelFactory)Creates a newMapControlFactoryinstance.@NotNull MapPropertiesDialogFactory<GameObject,MapArchObject,Archetype>newMapPropertiesDialogFactory(@NotNull ProjectSettings projectSettings, @NotNull MapManager<GameObject,MapArchObject,Archetype> mapManager)Creates a newMapPropertiesDialogFactoryinstance.@NotNull MapViewFactory<GameObject,MapArchObject,Archetype>newMapViewFactory(@NotNull RendererFactory<GameObject,MapArchObject,Archetype> rendererFactory, @NotNull PathManager pathManager)Creates a newMapViewFactoryinstance.@NotNull NewMapDialogFactory<GameObject,MapArchObject,Archetype>newNewMapDialogFactory(@NotNull MapViewsManager<GameObject,MapArchObject,Archetype> mapViewsManager, @NotNull MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull PickmapChooserView<GameObject,MapArchObject,Archetype> pickmapChooserView, @NotNull java.awt.Component parent)Creates a newNewMapDialogFactoryinstance.@NotNull ProjectSettingsnewProjectSettings(@NotNull EditorSettings editorSettings)Creates a newProjectSettingsinstance.@NotNull RendererFactory<GameObject,MapArchObject,Archetype>newRendererFactory(@NotNull MapViewSettings mapViewSettings, @NotNull FilterControl<GameObject,MapArchObject,Archetype> filterControl, @NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, @NotNull FaceObjectProviders faceObjectProviders, @NotNull ResourceIcons resourceIcons, @NotNull SmoothFaces smoothFaces)Creates a newRendererFactoryinstance.@NotNull AbstractResources<GameObject,MapArchObject,Archetype>newResources(@NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull AbstractArchetypeParser<GameObject,MapArchObject,Archetype,?> archetypeParser, @NotNull FaceObjects faceObjects, @NotNull AnimationObjects animationObjects, @NotNull ArchFaceProvider archFaceProvider, @NotNull FaceObjectProviders faceObjectProviders, @NotNull SmoothFaces smoothFaces)Creates a newAbstractResourcesinstance.@NotNull ScriptArchData<GameObject,MapArchObject,Archetype>newScriptArchData()Creates a newScriptArchDatainstance.@NotNull ScriptArchDataUtils<GameObject,MapArchObject,Archetype>newScriptArchDataUtils(@NotNull ScriptArchUtils scriptArchUtils, @NotNull ScriptedEventFactory<GameObject,MapArchObject,Archetype> scriptedEventFactory, @NotNull ScriptedEventEditor<GameObject,MapArchObject,Archetype> scriptedEventEditor)Creates a newScriptArchDataUtilsinstance.@NotNull DefaultScriptArchUtilsnewScriptArchUtils(@NotNull ArchetypeTypeList eventTypes)Creates a newScriptArchUtilsinstance.@NotNull ScriptedEventFactory<GameObject,MapArchObject,Archetype>newScriptedEventFactory(@NotNull ScriptArchUtils scriptArchUtils, @NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory, @NotNull ScriptedEventEditor<GameObject,MapArchObject,Archetype> scriptedEventEditor, @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet)Creates a newScriptedEventFactoryinstance.@Nullable EditorActionnewServerActions(@NotNull FileControl<GameObject,MapArchObject,Archetype> fileControl)Creates the "open in client" action.
-
-
-
Method Detail
-
getDoubleFaceOffset
public int getDoubleFaceOffset()
Description copied from interface:ProjectFactoryReturns the offset for drawing double faces.- Specified by:
getDoubleFaceOffsetin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Returns:
- the offset
-
newMapArchObjectFactory
@NotNull public @NotNull MapArchObjectFactory<MapArchObject> newMapArchObjectFactory(@NotNull @NotNull ProjectSettings projectSettings)
Description copied from interface:ProjectFactoryCreates a newMapArchObjectFactoryinstance.- Specified by:
newMapArchObjectFactoryin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Parameters:
projectSettings- the project settings to use- Returns:
- the new instance
-
newMapArchObjectParserFactory
@NotNull public @NotNull DefaultMapArchObjectParserFactory newMapArchObjectParserFactory()
Description copied from interface:ProjectFactoryCreates a newMapArchObjectParserFactoryinstance.- Specified by:
newMapArchObjectParserFactoryin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Returns:
- the new instance
-
newGameObjectFactory
@NotNull public @NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> newGameObjectFactory(@NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull AnimationObjects animationObjects, @NotNull @NotNull ArchetypeTypeSet archetypeTypeSet)
Description copied from interface:ProjectFactoryCreates a newGameObjectFactoryinstance.- Specified by:
newGameObjectFactoryin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Parameters:
faceObjectProviders- the face object providers to useanimationObjects- the animation objects for looking up animationsarchetypeTypeSet- the archetype type set for looking up archetype types- Returns:
- the new instance
-
newGameObjectParserFactory
@NotNull public @NotNull GameObjectParserFactory<GameObject,MapArchObject,Archetype> newGameObjectParserFactory(@NotNull @NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory, @NotNull @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull @NotNull ArchetypeTypeSet archetypeTypeSet)
Description copied from interface:ProjectFactoryCreates a newGameObjectParserFactoryinstance.- Specified by:
newGameObjectParserFactoryin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Parameters:
gameObjectFactory- the game object parser factory to usearchetypeSet- the archetype set for looking up archetypesarchetypeTypeSet- the archetype type set for sorting attributes on save- Returns:
- the new instance
-
newProjectSettings
@NotNull public @NotNull ProjectSettings newProjectSettings(@NotNull @NotNull EditorSettings editorSettings)
Description copied from interface:EditorFactoryCreates a newProjectSettingsinstance.- Specified by:
newProjectSettingsin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Parameters:
editorSettings- the editor settings instance for default values- Returns:
- the new instance
-
newArchetypeFactory
@NotNull public @NotNull ArchetypeFactory<GameObject,MapArchObject,Archetype> newArchetypeFactory(@NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull AnimationObjects animationObjects)
Description copied from interface:ProjectFactoryCreates a newArchetypeFactoryinstance.- Specified by:
newArchetypeFactoryin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Parameters:
faceObjectProviders- the face object providers for looking up facesanimationObjects- the animation objects for looking up animations- Returns:
- the new instance
-
newArchetypeSet
@NotNull public @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> newArchetypeSet(@NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull ArchetypeFactory<GameObject,MapArchObject,Archetype> archetypeFactory)
Description copied from interface:ProjectFactoryCreates a newArchetypeSetinstance.- Specified by:
newArchetypeSetin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Parameters:
projectSettings- the project settings to usearchetypeFactory- the archetype factory to use- Returns:
- the new instance
-
newMapControlFactory
@NotNull public @NotNull MapControlFactory<GameObject,MapArchObject,Archetype> newMapControlFactory(@NotNull @NotNull MapWriter<GameObject,MapArchObject,Archetype> mapWriter, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull MapModelFactory<GameObject,MapArchObject,Archetype> mapModelFactory)
Description copied from interface:ProjectFactoryCreates a newMapControlFactoryinstance.- Specified by:
newMapControlFactoryin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Parameters:
mapWriter- the map writer to useprojectSettings- the project settings to usemapModelFactory- the map model factory to use- Returns:
- the new instance
-
getIncludeFaceNumbers
public boolean getIncludeFaceNumbers()
Description copied from interface:ProjectFactoryReturns whether the face file contains face numbers.- Specified by:
getIncludeFaceNumbersin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Returns:
- whether the face file contains face numbers
-
loadAttributeRangeChecker
@NotNull public @NotNull AttributeRangeChecker<GameObject,MapArchObject,Archetype> loadAttributeRangeChecker(@NotNull @NotNull ErrorViewCollector errorViewCollector, @NotNull @NotNull GameObjectMatchers gameObjectMatchers, @NotNull @NotNull ValidatorPreferences validatorPreferences)
Description copied from interface:ProjectFactoryLoads the attribute range checker for map validation.- Specified by:
loadAttributeRangeCheckerin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Parameters:
errorViewCollector- the error view collector to usegameObjectMatchers- the defined game object matchersvalidatorPreferences- the validator preferences to use- Returns:
- the loaded attribute range checker
-
newArchetypeParser
public ArchetypeParser newArchetypeParser(@NotNull @NotNull ErrorView errorView, GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, AnimationObjects animationObjects, ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull @NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull SmoothFaces smoothFaces)
Description copied from interface:ProjectFactoryCreates a newAbstractArchetypeParserinstance.- Specified by:
newArchetypeParserin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Parameters:
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- Returns:
- the new instance
-
newScriptArchUtils
@NotNull public @NotNull DefaultScriptArchUtils newScriptArchUtils(@NotNull @NotNull ArchetypeTypeList eventTypes)
Description copied from interface:EditorFactoryCreates a newScriptArchUtilsinstance.- Specified by:
newScriptArchUtilsin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Parameters:
eventTypes- the event types to use- Returns:
- the new instance
-
newScriptedEventFactory
@NotNull public @NotNull ScriptedEventFactory<GameObject,MapArchObject,Archetype> newScriptedEventFactory(@NotNull @NotNull ScriptArchUtils scriptArchUtils, @NotNull @NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory, @NotNull @NotNull ScriptedEventEditor<GameObject,MapArchObject,Archetype> scriptedEventEditor, @NotNull @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet)
Description copied from interface:EditorFactoryCreates a newScriptedEventFactoryinstance.- Specified by:
newScriptedEventFactoryin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Parameters:
scriptArchUtils- the script arch utils to usegameObjectFactory- the game object factory for creating game objectsscriptedEventEditor- the scripted event editor to usearchetypeSet- the archetype set to use- Returns:
- the new instance
-
newScriptArchData
@NotNull public @NotNull ScriptArchData<GameObject,MapArchObject,Archetype> newScriptArchData()
Description copied from interface:EditorFactoryCreates a newScriptArchDatainstance.- Specified by:
newScriptArchDatain interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- the new instance
-
newScriptArchDataUtils
@NotNull public @NotNull ScriptArchDataUtils<GameObject,MapArchObject,Archetype> newScriptArchDataUtils(@NotNull @NotNull ScriptArchUtils scriptArchUtils, @NotNull @NotNull ScriptedEventFactory<GameObject,MapArchObject,Archetype> scriptedEventFactory, @NotNull @NotNull ScriptedEventEditor<GameObject,MapArchObject,Archetype> scriptedEventEditor)
Description copied from interface:EditorFactoryCreates a newScriptArchDataUtilsinstance.- Specified by:
newScriptArchDataUtilsin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Parameters:
scriptArchUtils- the script arch utils to usescriptedEventFactory- the scripted event factory to usescriptedEventEditor- the scripted event editor to use- Returns:
- the new instance
-
newRendererFactory
@NotNull public @NotNull RendererFactory<GameObject,MapArchObject,Archetype> newRendererFactory(@NotNull @NotNull MapViewSettings mapViewSettings, @NotNull @NotNull FilterControl<GameObject,MapArchObject,Archetype> filterControl, @NotNull @NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, @NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull ResourceIcons resourceIcons, @NotNull @NotNull SmoothFaces smoothFaces)
Description copied from interface:EditorFactoryCreates a newRendererFactoryinstance.- Specified by:
newRendererFactoryin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Parameters:
mapViewSettings- the map view settings to usefilterControl- the filter control to usegameObjectParser- the game object parser for creating tooltip informationfaceObjectProviders- the face object providers for looking up facesresourceIcons- the resource icons for creating iconssmoothFaces- the smooth faces to use- Returns:
- the new instance
-
newMapViewFactory
@NotNull public @NotNull MapViewFactory<GameObject,MapArchObject,Archetype> newMapViewFactory(@NotNull @NotNull RendererFactory<GameObject,MapArchObject,Archetype> rendererFactory, @NotNull @NotNull PathManager pathManager)
Description copied from interface:EditorFactoryCreates a newMapViewFactoryinstance.- Specified by:
newMapViewFactoryin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Parameters:
rendererFactory- the renderer factory to usepathManager- the path manager for converting path names view factories- Returns:
- the new instance
-
newMapPropertiesDialogFactory
@NotNull public @NotNull MapPropertiesDialogFactory<GameObject,MapArchObject,Archetype> newMapPropertiesDialogFactory(@NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull MapManager<GameObject,MapArchObject,Archetype> mapManager)
Description copied from interface:EditorFactoryCreates a newMapPropertiesDialogFactoryinstance.- Specified by:
newMapPropertiesDialogFactoryin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Parameters:
projectSettings- the project settings to usemapManager- the map manager to use- Returns:
- the new instance
-
newNewMapDialogFactory
@NotNull public @NotNull NewMapDialogFactory<GameObject,MapArchObject,Archetype> newNewMapDialogFactory(@NotNull @NotNull MapViewsManager<GameObject,MapArchObject,Archetype> mapViewsManager, @NotNull @NotNull MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull @NotNull PickmapChooserView<GameObject,MapArchObject,Archetype> pickmapChooserView, @NotNull @NotNull java.awt.Component parent)
Description copied from interface:EditorFactoryCreates a newNewMapDialogFactoryinstance.- Specified by:
newNewMapDialogFactoryin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Parameters:
mapViewsManager- the map viewsmapArchObjectFactory- the map arch object factory instancepickmapChooserView- the pickmap chooser view for creating new pickmapsparent- the parent component of the dialogs- Returns:
- the new new map dialog factory instance
-
createPreferencesGroup
@NotNull public @NotNull net.sf.japi.swing.prefs.PreferencesGroup createPreferencesGroup(@NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull EditorSettings editorSettings, @NotNull @NotNull DelegatingMapValidator<GameObject,MapArchObject,Archetype> validators, @NotNull @NotNull AppPreferencesModel appPreferencesModel, @NotNull @NotNull ExitConnectorModel exitConnectorModel, @NotNull @NotNull ConfigSourceFactory configSourceFactory)Description copied from interface:EditorFactoryCreates a newPreferencesGroupinstance.- Specified by:
createPreferencesGroupin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Parameters:
projectSettings- the project settings to useeditorSettings- the editor settings to usevalidators- the validators to useappPreferencesModel- the app preferences model to useexitConnectorModel- the exit connector model to useconfigSourceFactory- the config source factory to use- Returns:
- the new instance
-
newResources
@NotNull public @NotNull AbstractResources<GameObject,MapArchObject,Archetype> newResources(@NotNull @NotNull GameObjectParser<GameObject,MapArchObject,Archetype> gameObjectParser, @NotNull @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull @NotNull AbstractArchetypeParser<GameObject,MapArchObject,Archetype,?> archetypeParser, @NotNull @NotNull FaceObjects faceObjects, @NotNull @NotNull AnimationObjects animationObjects, @NotNull @NotNull ArchFaceProvider archFaceProvider, @NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull SmoothFaces smoothFaces)
Description copied from interface:ProjectFactoryCreates a newAbstractResourcesinstance.- Specified by:
newResourcesin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Parameters:
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- Returns:
- the new instance
-
newServerActions
@Nullable public @Nullable EditorAction newServerActions(@NotNull @NotNull FileControl<GameObject,MapArchObject,Archetype> fileControl)
Description copied from interface:EditorFactoryCreates the "open in client" action. Does nothing if this editor does not support this action.- Specified by:
newServerActionsin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Parameters:
fileControl- the file control for saving maps- Returns:
- the action or
null
-
getScriptsDir
@NotNull public @NotNull java.lang.String getScriptsDir()
Description copied from interface:ProjectFactoryReturns the default directory for editor scripts.- Specified by:
getScriptsDirin interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Returns:
- the directory
-
getSpellFile
@Nullable public @Nullable java.lang.String getSpellFile()
Description copied from interface:ProjectFactoryReturns the spell file name to load.- Specified by:
getSpellFilein interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Returns:
- the spell file name or
nullto not load numbered spells
-
getSpellType
public int getSpellType()
Description copied from interface:ProjectFactoryReturns the archetype type for game object spells.- Specified by:
getSpellTypein interfaceProjectFactory<GameObject,MapArchObject,Archetype>- Returns:
- the archetype type or
0to not load game object spells
-
getScriptFileFilter
@NotNull public @NotNull javax.swing.filechooser.FileFilter getScriptFileFilter()
Description copied from interface:EditorFactoryReturns theFileFilterfor script files.- Specified by:
getScriptFileFilterin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- the file filter
-
getScriptExtension
@NotNull public @NotNull java.lang.String getScriptExtension()
Description copied from interface:EditorFactoryReturns the extension for script files.- Specified by:
getScriptExtensionin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- the extension
-
getScriptName
@NotNull public @NotNull java.lang.String getScriptName()
Description copied from interface:EditorFactoryReturns the display name for script files.- Specified by:
getScriptNamein interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- the display name
-
isCreateDirectionPane
public boolean isCreateDirectionPane()
Description copied from interface:EditorFactoryReturns whether the direction panel should be created.- Specified by:
isCreateDirectionPanein interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- whether the direction panel should be created
-
getUndefinedSpellIndex
public int getUndefinedSpellIndex()
Description copied from interface:EditorFactoryReturns the index for "no spell".- Specified by:
getUndefinedSpellIndexin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- tne index
-
getCacheFiles
@NotNull public @NotNull CacheFiles getCacheFiles()
Description copied from interface:EditorFactoryReturns the cache files for icon and preview images.- Specified by:
getCacheFilesin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- the cache files
-
getDirectionMap
@NotNull public @NotNull Direction @NotNull [] getDirectionMap()
Description copied from interface:EditorFactoryReturns a map of relative direction to map window direction.- Specified by:
getDirectionMapin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- the map
-
isAllowRandomMapParameters
public boolean isAllowRandomMapParameters()
Description copied from interface:EditorFactoryReturns whether exit paths may point to random map parameters.- Specified by:
isAllowRandomMapParametersin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- whether exit paths may point to random map parameters
-
getCompassIconName
@Nullable public @Nullable java.lang.String getCompassIconName()
Description copied from interface:EditorFactoryReturns the icon name to display in the selected square view.- Specified by:
getCompassIconNamein interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- the icon name or
nullto display no icon
-
getGridartaJarFilename
@NotNull public @NotNull java.lang.String getGridartaJarFilename()
Description copied from interface:EditorFactoryReturns the filename of the editor's .jar file.- Specified by:
getGridartaJarFilenamein interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- the filename
-
getMapFileFilter
@NotNull public @NotNull javax.swing.filechooser.FileFilter getMapFileFilter()
Description copied from interface:EditorFactoryReturns the file filter for map files.- Specified by:
getMapFileFilterin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- the file filter for map files
-
getLockedItemsTypeNumbers
public int @NotNull [] getLockedItemsTypeNumbers()
Description copied from interface:EditorFactoryReturns the type numbers of game objects being locked items.- Specified by:
getLockedItemsTypeNumbersin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- the type numbers
-
isAutoValidatorDefault
public boolean isAutoValidatorDefault()
Description copied from interface:EditorFactoryReturns whether the auto validator is enabled by default.- Specified by:
isAutoValidatorDefaultin interfaceEditorFactory<GameObject,MapArchObject,Archetype>- Returns:
- whether the auto validator is enabled by default
-
-