C# Class OurSonic.Level.Tiles.Tile

Mostra file Open project: OurSonic/OurSonicSharp Class Usage Examples

Private Properties

Property Type Description
getAnimatedPaletteCacheIndex int
getBaseCacheIndex int

Public Methods

Method Description
ClearCache ( ) : void
DrawAnimatedPalette ( CanvasRenderingContext2D canvas, Point pos, bool xflip, bool yflip, int palette, int animatedPaletteIndex, bool isAnimatedTile = false ) : void
DrawAnimatedTile ( CanvasRenderingContext2D canvas, Point pos, bool xflip, bool yflip, int palette, int animatedTileIndex ) : void
DrawBase ( CanvasRenderingContext2D canvas, Point pos, bool xflip, bool yflip, int palette, bool isAnimatedTile = false ) : void
GetAllPaletteIndexes ( ) : int[]
ShouldTileAnimate ( ) : bool
Tile ( int colors ) : System.Collections.Generic

Private Methods

Method Description
getAnimatedPaletteCacheIndex ( bool xflip, bool yflip, int palette, int animatedPaletteIndex, int frameIndex ) : int
getBaseCacheIndex ( bool xflip, bool yflip, int palette ) : int

Method Details

ClearCache() public method

public ClearCache ( ) : void
return void

DrawAnimatedPalette() public method

public DrawAnimatedPalette ( CanvasRenderingContext2D canvas, Point pos, bool xflip, bool yflip, int palette, int animatedPaletteIndex, bool isAnimatedTile = false ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
pos OurSonic.Utility.Point
xflip bool
yflip bool
palette int
animatedPaletteIndex int
isAnimatedTile bool
return void

DrawAnimatedTile() public method

public DrawAnimatedTile ( CanvasRenderingContext2D canvas, Point pos, bool xflip, bool yflip, int palette, int animatedTileIndex ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
pos OurSonic.Utility.Point
xflip bool
yflip bool
palette int
animatedTileIndex int
return void

DrawBase() public method

public DrawBase ( CanvasRenderingContext2D canvas, Point pos, bool xflip, bool yflip, int palette, bool isAnimatedTile = false ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
pos OurSonic.Utility.Point
xflip bool
yflip bool
palette int
isAnimatedTile bool
return void

GetAllPaletteIndexes() public method

public GetAllPaletteIndexes ( ) : int[]
return int[]

ShouldTileAnimate() public method

public ShouldTileAnimate ( ) : bool
return bool

Tile() public method

public Tile ( int colors ) : System.Collections.Generic
colors int
return System.Collections.Generic