classafFantomMappy::Block
sys::Obj afFantomMappy::Block
@Js
A simple bean class which 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
BlockCorner:Bool collisionFlag := [BlockCorner:Bool][:]- drawMode
RendererDrawMode drawMode()- flag
- imageIndex
BlockLayer:Int imageIndex := [BlockLayer:Int][:]- textString
Str? textString- userData
Int:Int userData := [Int:Int][:]User data is indexed 1 <=> 7