classafFantomMappy::MapViewer

sys::Obj
  afFantomMappy::Viewer
    afFantomMappy::MapViewer

@Js

Renders a MappyMap to the screen. MapViewer creates a LayerViewer for each of the Layers in the MappyMap.

Updating the coordinates of a MapViewer also updates the coordinates of all the underlying LayerViewers.

Note that the coordinates of a MapViewer are held independently of the coordinates held by the underlying LayerViewers. i.e. If you were to change the coordinates of the LayerViewers, the coordinates held by the MapViewer would remain unchanged.

layerViewers

Source

LayerViewer[] layerViewers := LayerViewer[,] { private set }

The viewers for each Layer.

make

Source

new make(MappyMap map, Renderer renderer, Rect viewBounds)

Creates a LayerViewer for each of the Layers in the MappyMap and places the viewing area at the given offset.

map

Source

MappyMap map { private set }

The MappyMap this Viewer renders.

updateAnimBlocks

Source

Void updateAnimBlocks()

A helper method that updates the animation of all the AnimBlocks in the MappyMap