topical media & game development

talk show tell print

actionscript-example-ITileMapRenderer.ax

actionscript-example-ITileMapRenderer.ax (swf ) [ flash ] flex


  package {
    import flash.display.BitmapData;
    import flash.geom.Rectangle;
  
    // Describes the services that must be provided by tile map rendering
    // classes. A tile map rendering class must be able to draw a region of a 
    // tile map based on a given tile set. For an example tile map 
    // rendering class, see TileMapRenderer.
    public interface actionscript-example-ITileMapRenderer {
      function setMap (newMap:TileMap):void
      function setTiles (newTiles:TileSet):void
      function getRenderedRegionByPixels (rect:Rectangle):BitmapData;
      function getRenderedRegionByCoords (startCol:int, 
                                          startRow:int, 
                                          numCols:int, 
                                          numRows:int):BitmapData;
    }
  }


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.