Class enchant.Avatar
- Defined in: avatar.enchant.js
- Extends enchant.avatar.AvatarCharacter
Constructor Attributes | Constructor Name and Description |
---|---|
enchant.Avatar(code)
|
- Fields borrowed from class enchant.avatar.AvatarCharacter:
- action, animFrame, animPattern
Method Summary
Method Attributes | Method Name and Description |
---|---|
getCode()
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