Skip to main content

AlphaCharacter

Kindclass
Packageobjects
Full nameobjects.AlphaCharacter
Sourcesource/objects/Alphabet.hx
ExtendsFlxSprite

Public fields​

NameTypeStaticDefaultNotes
imageStringno—property (default, set)
cachedFramesMap<String, FlxAtlasFrames>yesnew Map()—
allLettersMap<String, Null<Letter>>yes[—
alignOffsetFloatno0—
letterOffsetArray<Float>no[0, 0]—
rowIntno0—
rowWidthFloatno0—
characterStringno'?'—
curLetterLetternonull—

Public methods​

new (constructor)​

function new()

View source

setupAlphaCharacter​

function setupAlphaCharacter(x:Float, y:Float, character:String = null, bold:Null<Bool> = null)
ParameterTypeDefault
xFloat—
yFloat—
character (optional)Stringnull
bold (optional)Null<Bool>null

View source

isTypeAlphabet​

static function isTypeAlphabet(c:String)
ParameterTypeDefault
cString—

View source

updateLetterOffset​

function updateLetterOffset()

View source

updateHitbox​

override function updateHitbox()

View source

Internals​

Private / internal members
FieldTypeStatic
parentAlphabetno
Method
static function getCachedFrames(name:String):FlxAtlasFrames
function set_image(name:String)