Class AccountCreateCharacterCommand

  • All Implemented Interfaces:
    GUICommand

    public class AccountCreateCharacterCommand
    extends java.lang.Object
    implements GUICommand
    A GUICommand sending a character creation request.
    • Constructor Detail

      • AccountCreateCharacterCommand

        public AccountCreateCharacterCommand​(@NotNull
                                             @NotNull CommandCallback commandCallback,
                                             @NotNull
                                             @NotNull AbstractGUIElement button,
                                             @NotNull
                                             @NotNull GuiFactory guiFactory,
                                             @NotNull
                                             @NotNull NewCharModel newCharModel)
        Creates a new instance.
        Parameters:
        commandCallback - what to inform of various changes
        button - the item to link to to find the Gui from which to get information
        guiFactory - the global GUI factory instance
        newCharModel - the global new char model instance
    • Method Detail

      • canExecute

        public boolean canExecute()
        Description copied from interface: GUICommand
        Returns whether this command may be executed.
        Specified by:
        canExecute in interface GUICommand
        Returns:
        whether this command may be executed