Class AccountPlayCharacterCommand

  • All Implemented Interfaces:
    GUICommand

    public class AccountPlayCharacterCommand
    extends java.lang.Object
    implements GUICommand
    A GUICommand sending a play character request to the server.
    • Constructor Detail

      • AccountPlayCharacterCommand

        public AccountPlayCharacterCommand​(@NotNull
                                           @NotNull CommandCallback commandCallback,
                                           @NotNull
                                           @NotNull AbstractGUIElement button,
                                           @NotNull
                                           @NotNull GuiFactory guiFactory)
        Creates a new instance.
        Parameters:
        commandCallback - what to inform of the request
        button - the element to find the Gui for the other fields
        guiFactory - the global GUI factory 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