public class DefaultEditorFactory extends java.lang.Object implements EditorFactory<GameObject,MapArchObject,Archetype>
EditorFactory that creates Crossfire objects.| Constructor and Description |
|---|
DefaultEditorFactory() |
public int getDoubleFaceOffset()
getDoubleFaceOffset in interface ProjectFactory<GameObject,MapArchObject,Archetype>@NotNull public MapArchObjectFactory<MapArchObject> newMapArchObjectFactory(@NotNull ProjectSettings projectSettings)
MapArchObjectFactory instance.newMapArchObjectFactory in interface ProjectFactory<GameObject,MapArchObject,Archetype>projectSettings - the project settings to use@NotNull public DefaultMapArchObjectParserFactory newMapArchObjectParserFactory()
MapArchObjectParserFactory instance.newMapArchObjectParserFactory in interface ProjectFactory<GameObject,MapArchObject,Archetype>@NotNull public GameObjectFactory<GameObject,MapArchObject,Archetype> newGameObjectFactory(@NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects, @NotNull ArchetypeTypeSet archetypeTypeSet)
GameObjectFactory instance.newGameObjectFactory in interface ProjectFactory<GameObject,MapArchObject,Archetype>faceObjectProviders - the face object providers to useanimationObjects - the animation objects for looking up animationsarchetypeTypeSet - the archetype type set for looking up archetype
types@NotNull public GameObjectParserFactory<GameObject,MapArchObject,Archetype> newGameObjectParserFactory(@NotNull GameObjectFactory<GameObject,MapArchObject,Archetype> gameObjectFactory, @NotNull ArchetypeSet<GameObject,MapArchObject,Archetype> archetypeSet, @NotNull ArchetypeTypeSet archetypeTypeSet)
GameObjectParserFactory instance.newGameObjectParserFactory in interface ProjectFactory<GameObject,MapArchObject,Archetype>gameObjectFactory - the game object parser factory to usearchetypeSet - the archetype set for looking up archetypesarchetypeTypeSet - the archetype type set for sorting attributes on
save@NotNull public ProjectSettings newProjectSettings(@NotNull EditorSettings editorSettings)
ProjectSettings instance.newProjectSettings in interface EditorFactory<GameObject,MapArchObject,Archetype>editorSettings - the editor settings instance for default values@NotNull public ArchetypeFactory<GameObject,MapArchObject,Archetype> newArchetypeFactory(@NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects)
ArchetypeFactory instance.newArchetypeFactory in interface ProjectFactory<GameObject,MapArchObject,Archetype>faceObjectProviders - the face object providers for looking up
facesanimationObjects - the animation objects for looking up animations@NotNull public ArchetypeSet<GameObject,MapArchObject,Archetype> newArchetypeSet(@NotNull ProjectSettings projectSettings, @NotNull ArchetypeFactory<GameObject,MapArchObject,Archetype> archetypeFactory)
ArchetypeSet instance.newArchetypeSet in interface ProjectFactory<GameObject,MapArchObject,Archetype>projectSettings - the project settings to usearchetypeFactory - the archetype factory to use@NotNull public MapControlFactory<GameObject,MapArchObject,Archetype> newMapControlFactory(@NotNull MapWriter<GameObject,MapArchObject,Archetype> mapWriter, @NotNull ProjectSettings projectSettings, @NotNull MapModelFactory<GameObject,MapArchObject,Archetype> mapModelFactory)
MapControlFactory instance.newMapControlFactory in interface ProjectFactory<GameObject,MapArchObject,Archetype>mapWriter - the map writer to useprojectSettings - the project settings to usemapModelFactory - the map model factory to usepublic boolean getIncludeFaceNumbers()
getIncludeFaceNumbers in interface ProjectFactory<GameObject,MapArchObject,Archetype>@NotNull public AttributeRangeChecker<GameObject,MapArchObject,Archetype> loadAttributeRangeChecker(@NotNull ErrorViewCollector errorViewCollector, @NotNull GameObjectMatchers gameObjectMatchers, @NotNull ValidatorPreferences validatorPreferences)
loadAttributeRangeChecker in interface ProjectFactory<GameObject,MapArchObject,Archetype>errorViewCollector - the error view collector to usegameObjectMatchers - the defined game object matchersvalidatorPreferences - the validator preferences to usepublic ArchetypeParser newArchetypeParser(@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)
AbstractArchetypeParser instance.newArchetypeParser in interface ProjectFactory<GameObject,MapArchObject,Archetype>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 public DefaultScriptArchUtils newScriptArchUtils(@NotNull ArchetypeTypeList eventTypes)
ScriptArchUtils instance.newScriptArchUtils in interface EditorFactory<GameObject,MapArchObject,Archetype>eventTypes - the event types to use@NotNull public 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)
ScriptedEventFactory instance.newScriptedEventFactory in interface EditorFactory<GameObject,MapArchObject,Archetype>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@NotNull public ScriptArchData<GameObject,MapArchObject,Archetype> newScriptArchData()
ScriptArchData instance.newScriptArchData in interface EditorFactory<GameObject,MapArchObject,Archetype>@NotNull public ScriptArchDataUtils<GameObject,MapArchObject,Archetype> newScriptArchDataUtils(@NotNull ScriptArchUtils scriptArchUtils, @NotNull ScriptedEventFactory<GameObject,MapArchObject,Archetype> scriptedEventFactory, @NotNull ScriptedEventEditor<GameObject,MapArchObject,Archetype> scriptedEventEditor)
ScriptArchDataUtils instance.newScriptArchDataUtils in interface EditorFactory<GameObject,MapArchObject,Archetype>scriptArchUtils - the script arch utils to usescriptedEventFactory - the scripted event factory to usescriptedEventEditor - the scripted event editor to use@NotNull public 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)
RendererFactory instance.newRendererFactory in interface EditorFactory<GameObject,MapArchObject,Archetype>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@NotNull public MapViewFactory<GameObject,MapArchObject,Archetype> newMapViewFactory(@NotNull RendererFactory<GameObject,MapArchObject,Archetype> rendererFactory, @NotNull PathManager pathManager)
MapViewFactory instance.newMapViewFactory in interface EditorFactory<GameObject,MapArchObject,Archetype>rendererFactory - the renderer factory to usepathManager - the path manager for converting path names view
factories@NotNull public MapPropertiesDialogFactory<GameObject,MapArchObject,Archetype> newMapPropertiesDialogFactory(@NotNull ProjectSettings projectSettings, @NotNull MapManager<GameObject,MapArchObject,Archetype> mapManager)
MapPropertiesDialogFactory instance.newMapPropertiesDialogFactory in interface EditorFactory<GameObject,MapArchObject,Archetype>projectSettings - the project settings to usemapManager - the map manager to use@NotNull public 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)
NewMapDialogFactory instance.newNewMapDialogFactory in interface EditorFactory<GameObject,MapArchObject,Archetype>mapViewsManager - the map viewsmapArchObjectFactory - the map arch object factory instancepickmapChooserView - the pickmap chooser view for creating new
pickmapsparent - the parent component of the dialogs@NotNull
public net.sf.japi.swing.prefs.PreferencesGroup createPreferencesGroup(@NotNull
ProjectSettings projectSettings,
@NotNull
EditorSettings editorSettings,
@NotNull
DelegatingMapValidator<GameObject,MapArchObject,Archetype> validators,
@NotNull
AppPreferencesModel appPreferencesModel,
@NotNull
ExitConnectorModel exitConnectorModel,
@NotNull
ConfigSourceFactory configSourceFactory)
PreferencesGroup instance.createPreferencesGroup in interface EditorFactory<GameObject,MapArchObject,Archetype>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@NotNull public 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)
AbstractResources instance.newResources in interface ProjectFactory<GameObject,MapArchObject,Archetype>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@Nullable public EditorAction newServerActions(@NotNull FileControl<GameObject,MapArchObject,Archetype> fileControl)
newServerActions in interface EditorFactory<GameObject,MapArchObject,Archetype>fileControl - the file control for saving mapsnull@NotNull public java.lang.String getScriptsDir()
getScriptsDir in interface ProjectFactory<GameObject,MapArchObject,Archetype>@Nullable public java.lang.String getSpellFile()
getSpellFile in interface ProjectFactory<GameObject,MapArchObject,Archetype>null to not load numbered spellspublic int getSpellType()
getSpellType in interface ProjectFactory<GameObject,MapArchObject,Archetype>0 to not load game object spells@NotNull public javax.swing.filechooser.FileFilter getScriptFileFilter()
FileFilter for script files.getScriptFileFilter in interface EditorFactory<GameObject,MapArchObject,Archetype>@NotNull public java.lang.String getScriptExtension()
getScriptExtension in interface EditorFactory<GameObject,MapArchObject,Archetype>@NotNull public java.lang.String getScriptName()
getScriptName in interface EditorFactory<GameObject,MapArchObject,Archetype>public boolean isCreateDirectionPane()
isCreateDirectionPane in interface EditorFactory<GameObject,MapArchObject,Archetype>public int getUndefinedSpellIndex()
getUndefinedSpellIndex in interface EditorFactory<GameObject,MapArchObject,Archetype>@NotNull public CacheFiles getCacheFiles()
getCacheFiles in interface EditorFactory<GameObject,MapArchObject,Archetype>@NotNull public Direction[] getDirectionMap()
getDirectionMap in interface EditorFactory<GameObject,MapArchObject,Archetype>public boolean isAllowRandomMapParameters()
isAllowRandomMapParameters in interface EditorFactory<GameObject,MapArchObject,Archetype>@Nullable public java.lang.String getCompassIconName()
getCompassIconName in interface EditorFactory<GameObject,MapArchObject,Archetype>null to display no icon@NotNull public java.lang.String getGridartaJarFilename()
getGridartaJarFilename in interface EditorFactory<GameObject,MapArchObject,Archetype>@NotNull public javax.swing.filechooser.FileFilter getMapFileFilter()
getMapFileFilter in interface EditorFactory<GameObject,MapArchObject,Archetype>@NotNull public int[] getLockedItemsTypeNumbers()
getLockedItemsTypeNumbers in interface EditorFactory<GameObject,MapArchObject,Archetype>public boolean isAutoValidatorDefault()
isAutoValidatorDefault in interface EditorFactory<GameObject,MapArchObject,Archetype>