Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2016-0-4 21:23

Class enchant.Avatar

Class Summary
Constructor Attributes Constructor Name and Description
 
Fields borrowed from class enchant.avatar.AvatarCharacter:
action, animFrame, animPattern

Method Summary

Method Attributes Method Name and Description
 
Get avatar code from actual object
 
Reflesh avatar animation image
 
setCode(code)
Set avatar code and reflesh avatar image.
Methods borrowed from class enchant.avatar.AvatarCharacter:
left
right

Class Detail

enchant.Avatar(code)
Parameters:
{int} code
Avatar code

Method Detail

  • {String} getCode()
    Get avatar code from actual object
    Returns:
    {String} code;
  • loadImage()
    Reflesh avatar animation image
  • setCode(code)
    Set avatar code and reflesh avatar image.
    Parameters:
    {String} code