AlphaCharacter
| Kind | class |
| Package | objects |
| Full name | objects.AlphaCharacter |
| Source | source/objects/Alphabet.hx |
| Extends | FlxSprite |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
image | String | no | — | property (default, set) |
cachedFrames | Map<String, FlxAtlasFrames> | yes | new Map() | — |
allLetters | Map<String, Null<Letter>> | yes | [ | — |
alignOffset | Float | no | 0 | — |
letterOffset | Array<Float> | no | [0, 0] | — |
row | Int | no | 0 | — |
rowWidth | Float | no | 0 | — |
character | String | no | '?' | — |
curLetter | Letter | no | null | — |
Public methods
new (constructor)
function new()
setupAlphaCharacter
function setupAlphaCharacter(x:Float, y:Float, character:String = null, bold:Null<Bool> = null)
| Parameter | Type | Default |
|---|---|---|
x | Float | — |
y | Float | — |
character (optional) | String | null |
bold (optional) | Null<Bool> | null |
isTypeAlphabet
static function isTypeAlphabet(c:String)
| Parameter | Type | Default |
|---|---|---|
c | String | — |
updateLetterOffset
function updateLetterOffset()
updateHitbox
override function updateHitbox()
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
parent | Alphabet | no |
| Method |
|---|
static function getCachedFrames(name:String):FlxAtlasFrames |
function set_image(name:String) |