Class JXCSkinLoader


  • public class JXCSkinLoader
    extends java.lang.Object
    Parser for loading JXCSkin instances from JXCSkinSources.
    • Constructor Detail

      • JXCSkinLoader

        public JXCSkinLoader​(@NotNull
                             @NotNull Model model,
                             @NotNull
                             @NotNull InventoryView inventoryView,
                             @NotNull
                             @NotNull FloorView floorView,
                             @NotNull
                             @NotNull SpellsView spellView,
                             @NotNull
                             @NotNull SpellSkillView spellSkillsView,
                             @NotNull
                             @NotNull FacesManager facesManager,
                             @NotNull
                             @NotNull MapUpdaterState mapUpdaterState,
                             @NotNull
                             @NotNull KeyBindings defaultKeyBindings,
                             @NotNull
                             @NotNull OptionManager optionManager,
                             int defaultTileSize,
                             @NotNull
                             @NotNull KeybindingsManager keybindingsManager,
                             @NotNull
                             @NotNull QuestsView questView,
                             @NotNull
                             @NotNull CommandHistoryFactory commandHistoryFactory,
                             @NotNull
                             @NotNull KnowledgeView knowledgeView,
                             @NotNull
                             @NotNull KnowledgeTypeView knowledgeTypeView,
                             boolean avoidCopyArea,
                             @NotNull
                             @NotNull GuiManager guiManager,
                             @NotNull
                             @NotNull GuiFactory guiFactory)
        Creates a new instance.
        Parameters:
        model - the model instance to use
        inventoryView - the inventory item view to use
        floorView - the floor view to use
        spellView - the spells view to use
        spellSkillsView - the spell skills view to use
        facesManager - the faces manager instance to use
        mapUpdaterState - the map updater state instance to use
        defaultKeyBindings - the default key bindings
        optionManager - the option manager to use
        defaultTileSize - the default tile size for the map view
        keybindingsManager - the keybindings manager to use
        questView - the quests view to use
        commandHistoryFactory - the command history factory to us
        knowledgeView - the knowledge view to use
        knowledgeTypeView - the knowledge type view to use
        avoidCopyArea - whether map scrolling is done by copying pixel areas; if unset, always repaint all map squares
        guiManager - the GUI Manager to use
        guiFactory - the global GUI factory instance
    • Method Detail

      • load

        @NotNull
        public @NotNull JXCSkin load​(@NotNull
                                     @NotNull JXCSkinSource skinSource,
                                     @NotNull
                                     @NotNull CrossfireServerConnection crossfireServerConnection,
                                     @NotNull
                                     @NotNull GuiStateManager guiStateManager,
                                     @NotNull
                                     @NotNull TooltipManager tooltipManager,
                                     @NotNull
                                     @NotNull JXCWindowRenderer windowRenderer,
                                     @NotNull
                                     @NotNull GUIElementListener elementListener,
                                     @NotNull
                                     @NotNull MetaserverModel metaserverModel,
                                     @NotNull
                                     @NotNull CharacterModel characterModel,
                                     @NotNull
                                     @NotNull CommandQueue commandQueue,
                                     @NotNull
                                     @NotNull Shortcuts shortcuts,
                                     @NotNull
                                     @NotNull CommandExecutor commandExecutor,
                                     @NotNull
                                     @NotNull CommandCallback commandCallback,
                                     @NotNull
                                     @NotNull Macros macros,
                                     @NotNull
                                     @NotNull SmoothFaces smoothFaces)
                              throws JXCSkinException
        Loads the skin from its external representation.
        Parameters:
        skinSource - the source to load from
        crossfireServerConnection - the server connection to attach to
        guiStateManager - the gui state manager instance
        tooltipManager - the tooltip manager to update
        windowRenderer - the window renderer to add to
        elementListener - the element listener to notify
        metaserverModel - the metaserver mode to use
        characterModel - the character model to use
        commandQueue - the command queue to use
        shortcuts - the shortcuts to use
        commandExecutor - the command executor for executing commands
        commandCallback - the command callback to use
        macros - the macros instance to use
        smoothFaces - the smooth faces
        Returns:
        the loaded skin
        Throws:
        JXCSkinException - if the skin cannot be loaded