Class CharacterResult

java.lang.Object
marauroa.common.game.CharacterResult

public class CharacterResult 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

    • CharacterResult

      public CharacterResult(Result result, String character, RPObject template)
      Constructor
      Parameters:
      result - the result of creating the character.
      character - the username generated.
      template - the template of the object to create
  • Method Details

    • getResult

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

      public String getCharacter()
      Returns the username generated by create account.
      Returns:
      the username generated by create account.
    • getTemplate

      public RPObject getTemplate()
      Returns the template object used.
      Returns:
      the template object used.