Class JXCWindow


  • public class JXCWindow
    extends java.lang.Object
    The main window.
    • Field Detail

      • DISABLE_START_GUI

        public static final boolean DISABLE_START_GUI
        TODO: Remove when more options are implemented in the start screen gui.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JXCWindow

        public JXCWindow​(@NotNull
                         @NotNull Exiter exiter,
                         @NotNull
                         @NotNull CrossfireServerConnection server,
                         @NotNull
                         @NotNull OptionManager optionManager,
                         @NotNull
                         @NotNull GuiStateManager guiStateManager,
                         @NotNull
                         @NotNull JXCWindowRenderer windowRenderer,
                         @NotNull
                         @NotNull CommandQueue commandQueue,
                         @NotNull
                         @NotNull GuiManager guiManager,
                         @NotNull
                         @NotNull KeyHandler keyHandler,
                         @NotNull
                         @NotNull CharacterModel characterModel,
                         @NotNull
                         @NotNull JXCConnection connection,
                         @Nullable
                         @Nullable Resolution resolution,
                         boolean fullScreen,
                         @NotNull
                         @NotNull JXCSkin skin)
        Creates a new instance.
        Parameters:
        exiter - the exiter to use
        server - the crossfire server connection to use
        optionManager - the option manager instance to use
        guiStateManager - the gui state manager to use
        windowRenderer - the window renderer to use
        commandQueue - the command queue instance
        guiManager - the gui manager instance
        keyHandler - the key handler for keyboard input
        characterModel - the character model to update
        connection - the connection to update
        resolution - the size of the client area, null for default
        fullScreen - whether full-screen mode should be enabled
        skin - the skin to show
    • Method Detail

      • term

        public void term()
        Frees all resources. Should be called before the application terminates.