| Package | org.flixel.system |
| Class | public class FlxTilemapBuffer |
| Inheritance | FlxTilemapBuffer Object |
| Property | Defined By | ||
|---|---|---|---|
| columns : uint
How many columns of tiles fit in this buffer. | FlxTilemapBuffer | ||
| dirty : Boolean
Whether the buffer needs to be redrawn. | FlxTilemapBuffer | ||
| height : Number
The height of the buffer (usually just a few tiles taller than the camera). | FlxTilemapBuffer | ||
| pixels : BitmapData [read-only]
Read-only, nab the actual buffer BitmapData object. | FlxTilemapBuffer | ||
| rows : uint
How many rows of tiles fit in this buffer. | FlxTilemapBuffer | ||
| width : Number
The width of the buffer (usually just a few tiles wider than the camera). | FlxTilemapBuffer | ||
| x : Number
The current X position of the buffer. | FlxTilemapBuffer | ||
| y : Number
The current Y position of the buffer. | FlxTilemapBuffer | ||
| Property | Defined By | ||
|---|---|---|---|
| _flashRect : Rectangle | FlxTilemapBuffer | ||
| _pixels : BitmapData | FlxTilemapBuffer | ||
| Method | Defined By | ||
|---|---|---|---|
FlxTilemapBuffer(TileWidth:Number, TileHeight:Number, WidthInTiles:uint, HeightInTiles:uint, Camera:FlxCamera = null)
Instantiates a new camera-specific buffer for storing the visual tilemap data. | FlxTilemapBuffer | ||
destroy():void
Clean up memory. | FlxTilemapBuffer | ||
Just stamps this buffer onto the specified camera at the specified location. | FlxTilemapBuffer | ||
fill(Color:uint = 0):void
Fill the buffer with the specified color. | FlxTilemapBuffer | ||
| _flashRect | property |
protected var _flashRect:Rectangle| _pixels | property |
protected var _pixels:BitmapData| columns | property |
public var columns:uintHow many columns of tiles fit in this buffer.
| dirty | property |
public var dirty:BooleanWhether the buffer needs to be redrawn.
| height | property |
public var height:NumberThe height of the buffer (usually just a few tiles taller than the camera).
| pixels | property |
pixels:BitmapData [read-only]
Read-only, nab the actual buffer BitmapData object.
public function get pixels():BitmapData| rows | property |
public var rows:uintHow many rows of tiles fit in this buffer.
| width | property |
public var width:NumberThe width of the buffer (usually just a few tiles wider than the camera).
| x | property |
public var x:NumberThe current X position of the buffer.
| y | property |
public var y:NumberThe current Y position of the buffer.
| FlxTilemapBuffer | () | Constructor |
public function FlxTilemapBuffer(TileWidth:Number, TileHeight:Number, WidthInTiles:uint, HeightInTiles:uint, Camera:FlxCamera = null)Instantiates a new camera-specific buffer for storing the visual tilemap data.
ParametersTileWidth:Number — The width of the tiles in this tilemap.
| |
TileHeight:Number — The height of the tiles in this tilemap.
| |
WidthInTiles:uint — How many tiles wide the tilemap is.
| |
HeightInTiles:uint — How many tiles tall the tilemap is.
| |
Camera:FlxCamera (default = null) — Which camera this buffer relates to.
|
| destroy | () | method |
public function destroy():voidClean up memory.
| draw | () | method |
public function draw(Camera:FlxCamera, FlashPoint:Point):voidJust stamps this buffer onto the specified camera at the specified location.
Parameters
Camera:FlxCamera — Which camera to draw the buffer onto.
| |
FlashPoint:Point — Where to draw the buffer at in camera coordinates.
|
| fill | () | method |
public function fill(Color:uint = 0):voidFill the buffer with the specified color. Default value is transparent.
Parameters
Color:uint (default = 0) — What color to fill with, in 0xAARRGGBB hex format.
|