Class JXCSkinLoader
- java.lang.Object
-
- com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader
-
public class JXCSkinLoader extends java.lang.ObjectParser for loadingJXCSkininstances fromJXCSkinSources.
-
-
Constructor Summary
Constructors Constructor Description JXCSkinLoader(@NotNull Model model, @NotNull InventoryView inventoryView, @NotNull FloorView floorView, @NotNull SpellsView spellView, @NotNull SpellSkillView spellSkillsView, @NotNull FacesManager facesManager, @NotNull MapUpdaterState mapUpdaterState, @NotNull KeyBindings defaultKeyBindings, @NotNull OptionManager optionManager, int defaultTileSize, @NotNull KeybindingsManager keybindingsManager, @NotNull QuestsView questView, @NotNull CommandHistoryFactory commandHistoryFactory, @NotNull KnowledgeView knowledgeView, @NotNull KnowledgeTypeView knowledgeTypeView, boolean avoidCopyArea, @NotNull GuiManager guiManager, @NotNull GuiFactory guiFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull JXCSkinload(@NotNull JXCSkinSource skinSource, @NotNull CrossfireServerConnection crossfireServerConnection, @NotNull GuiStateManager guiStateManager, @NotNull TooltipManager tooltipManager, @NotNull JXCWindowRenderer windowRenderer, @NotNull GUIElementListener elementListener, @NotNull MetaserverModel metaserverModel, @NotNull CharacterModel characterModel, @NotNull CommandQueue commandQueue, @NotNull Shortcuts shortcuts, @NotNull CommandExecutor commandExecutor, @NotNull CommandCallback commandCallback, @NotNull Macros macros, @NotNull SmoothFaces smoothFaces)Loads the skin from its external representation.
-
-
-
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 useinventoryView- the inventory item view to usefloorView- the floor view to usespellView- the spells view to usespellSkillsView- the spell skills view to usefacesManager- the faces manager instance to usemapUpdaterState- the map updater state instance to usedefaultKeyBindings- the default key bindingsoptionManager- the option manager to usedefaultTileSize- the default tile size for the map viewkeybindingsManager- the keybindings manager to usequestView- the quests view to usecommandHistoryFactory- the command history factory to usknowledgeView- the knowledge view to useknowledgeTypeView- the knowledge type view to useavoidCopyArea- whether map scrolling is done by copying pixel areas; if unset, always repaint all map squaresguiManager- the GUI Manager to useguiFactory- 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 fromcrossfireServerConnection- the server connection to attach toguiStateManager- the gui state manager instancetooltipManager- the tooltip manager to updatewindowRenderer- the window renderer to add toelementListener- the element listener to notifymetaserverModel- the metaserver mode to usecharacterModel- the character model to usecommandQueue- the command queue to useshortcuts- the shortcuts to usecommandExecutor- the command executor for executing commandscommandCallback- the command callback to usemacros- the macros instance to usesmoothFaces- the smooth faces- Returns:
- the loaded skin
- Throws:
JXCSkinException- if the skin cannot be loaded
-
-