Class AccountResult

java.lang.Object
marauroa.common.game.AccountResult

public class AccountResult extends Object
This class represent the result of creating an account. It will also contains the generated username and the generated RPObject, so we can inform client about changes on username and/or RPObject.
Author:
miguel
  • Constructor Details

    • AccountResult

      public AccountResult(Result result, String username)
      Constructor
      Parameters:
      result - the result of creating the account.
      username - the username generated.
  • Method Details

    • getResult

      public Result getResult()
      Returns the result of creating the account
      Returns:
      the result of creating the account
    • getUsername

      public String getUsername()
      Returns the username generated by create account.
      Returns:
      the username generated by create account.
    • failed

      public boolean failed()
      Returns true if the creation of the account failed.
      Returns:
      true if the creation of the account failed.
    • toString

      public String toString()
      Overrides:
      toString in class Object