classafFantomMappy::Block

sys::Obj
  afFantomMappy::Block

@Js

Represents a Block as used by Mappy. A Block may contain up to 4 layers of images (1 background layer and 3 foreground layers), 7 fields of user data, quadratic collision information and 4 other flags.

collisionFlag

Source

BlockCorner:Bool collisionFlag := [BlockCorner:Bool][:]

drawMode

Source

RendererDrawMode drawMode()

flag

Source

BlockFlag:Bool flag := [BlockFlag:Bool][:]

imageIndex

Source

BlockLayer:Int imageIndex := [BlockLayer:Int][:]

textString

Source

Str? textString

userData

Source

Int:Int userData := [Int:Int][:]

User data is indexed 1 <=> 7