C# Class OurSonic.Level.Tiles.TilePiece

Mostrar archivo Open project: OurSonic/OurSonicSharp Class Usage Examples

Private Properties

Property Type Description
getAnimatedPaletteCacheIndex int

Public Methods

Method Description
DrawAnimatedPalette ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, bool xFlip, bool yFlip, int animatedPaletteIndex ) : void
DrawAnimatedTile ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, bool xFlip, bool yFlip, int animatedTileIndex ) : void
DrawBase ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, bool xFlip, bool yFlip ) : void
GetLayer1Angles ( ) : int
GetLayer1HeightMaps ( ) : HeightMap
GetLayer2Angles ( ) : int
GetLayer2HeightMaps ( ) : HeightMap
Init ( ) : void
OnlyBackground ( ) : bool
OnlyForeground ( ) : bool
ShouldAnimate ( ) : bool

Private Methods

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

Method Details

DrawAnimatedPalette() public method

public DrawAnimatedPalette ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, bool xFlip, bool yFlip, int animatedPaletteIndex ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
position Point
layer ChunkLayer
xFlip bool
yFlip bool
animatedPaletteIndex int
return void

DrawAnimatedTile() public method

public DrawAnimatedTile ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, bool xFlip, bool yFlip, int animatedTileIndex ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
position Point
layer ChunkLayer
xFlip bool
yFlip bool
animatedTileIndex int
return void

DrawBase() public method

public DrawBase ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, bool xFlip, bool yFlip ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
position Point
layer ChunkLayer
xFlip bool
yFlip bool
return void

GetLayer1Angles() public method

public GetLayer1Angles ( ) : int
return int

GetLayer1HeightMaps() public method

public GetLayer1HeightMaps ( ) : HeightMap
return HeightMap

GetLayer2Angles() public method

public GetLayer2Angles ( ) : int
return int

GetLayer2HeightMaps() public method

public GetLayer2HeightMaps ( ) : HeightMap
return HeightMap

Init() public method

public Init ( ) : void
return void

OnlyBackground() public method

public OnlyBackground ( ) : bool
return bool

OnlyForeground() public method

public OnlyForeground ( ) : bool
return bool

ShouldAnimate() public method

public ShouldAnimate ( ) : bool
return bool