C# Class OurSonic.SonicManager

Datei anzeigen Open project: OurSonic/OurSonicSharp Class Usage Examples

Public Properties

Property Type Description
DrawTickCount int
Instance SonicManager
cachedObjects LevelObject>.JsDictionary
mainCanvas OurSonic.Utility.CanvasInformation
objectManager OurSonic.Level.Objects.ObjectManager
overrideRealScale OurSonic.Utility.DoublePoint
tickCount int
waitingForTickContinue bool

Private Properties

Property Type Description
SonicManager System
cacheHeightMapForChunk OurSonic.Utility.CanvasInformation
containsAnimatedTile OurSonic.Level.Animations.TileAnimationData
debugDraw void
drawAnimations void
drawCanveses void
drawDebugTextChunks void
drawHaltMode bool
drawHighChunks void
drawLoading void
drawLowChunks void
drawObjects void
drawRings void
drawSonic void
effectClick bool
getOffs Point[]
tickObjects void
updatePositions void
updatePositionsForPlaying void

Public Methods

Method Description
CacheTiles ( ) : void
ClearCache ( ) : void
DestroyCanvases ( ) : void
Load ( SLData sonicLevel ) : void
MainDraw ( CanvasInformation canvas ) : void
MouseMove ( jQueryApi.jQueryEvent queryEvent ) : bool
MouseUp ( jQueryApi.jQueryEvent queryEvent ) : bool
OnClick ( jQueryApi.jQueryEvent Event ) : bool
PreloadSprites ( System.Action completed, Action update ) : void
Replace ( Rectangle from, Point to ) : void
ReplaceMagic ( ) : void
ResetCanvases ( ) : void
SonicManager ( SonicEngine engine, CanvasInformation gameCanvas, System.Action resize ) : System
Tick ( ) : void
loadObjects ( string>.KeyValuePair objects ) : void
loadObjects ( List objects ) : void

Private Methods

Method Description
SonicManager ( ) : System
cacheHeightMapForChunk ( TileChunk chunk ) : CanvasInformation
containsAnimatedTile ( int tile, SonicLevel sonLevel ) : TileAnimationData
debugDraw ( ) : void
drawAnimations ( CanvasRenderingContext2D canvas ) : void
drawCanveses ( CanvasRenderingContext2D canvas, Point localPoint ) : void
drawDebugTextChunks ( CanvasRenderingContext2D canvas, int fxP, int fyP, Point offs, Point localPoint ) : void
drawHaltMode ( CanvasRenderingContext2D canvas ) : bool
drawHighChunks ( CanvasRenderingContext2D canvas, int fxP, int fyP, Point offs, Point localPoint ) : void
drawLoading ( CanvasRenderingContext2D canvas ) : void
drawLowChunks ( CanvasRenderingContext2D canvas, Point localPoint, Point offs, int fyP, int fxP ) : void
drawObjects ( CanvasRenderingContext2D canvas, Point localPoint ) : void
drawRings ( CanvasRenderingContext2D canvas, Point localPoint ) : void
drawSonic ( CanvasRenderingContext2D canvas ) : void
effectClick ( jQueryApi.jQueryEvent Event ) : bool
getOffs ( int w1, int h1 ) : Point[]
tickObjects ( ) : void
updatePositions ( CanvasRenderingContext2D canvas ) : void
updatePositionsForPlaying ( CanvasRenderingContext2D canvas ) : void

Method Details

CacheTiles() public method

public CacheTiles ( ) : void
return void

ClearCache() public method

public ClearCache ( ) : void
return void

DestroyCanvases() public method

public DestroyCanvases ( ) : void
return void

Load() public method

public Load ( SLData sonicLevel ) : void
sonicLevel SLData
return void

MainDraw() public method

public MainDraw ( CanvasInformation canvas ) : void
canvas OurSonic.Utility.CanvasInformation
return void

MouseMove() public method

public MouseMove ( jQueryApi.jQueryEvent queryEvent ) : bool
queryEvent jQueryApi.jQueryEvent
return bool

MouseUp() public method

public MouseUp ( jQueryApi.jQueryEvent queryEvent ) : bool
queryEvent jQueryApi.jQueryEvent
return bool

OnClick() public method

public OnClick ( jQueryApi.jQueryEvent Event ) : bool
Event jQueryApi.jQueryEvent
return bool

PreloadSprites() public method

public PreloadSprites ( System.Action completed, Action update ) : void
completed System.Action
update Action
return void

Replace() public method

public Replace ( Rectangle from, Point to ) : void
from OurSonic.Utility.Rectangle
to Point
return void

ReplaceMagic() public method

public ReplaceMagic ( ) : void
return void

ResetCanvases() public method

public ResetCanvases ( ) : void
return void

SonicManager() public method

public SonicManager ( SonicEngine engine, CanvasInformation gameCanvas, System.Action resize ) : System
engine SonicEngine
gameCanvas OurSonic.Utility.CanvasInformation
resize System.Action
return System

Tick() public method

public Tick ( ) : void
return void

loadObjects() public method

public loadObjects ( string>.KeyValuePair objects ) : void
objects string>.KeyValuePair
return void

loadObjects() public method

public loadObjects ( List objects ) : void
objects List
return void

Property Details

DrawTickCount public_oe property

public int DrawTickCount
return int

Instance public_oe static_oe property

public static SonicManager,OurSonic Instance
return SonicManager

cachedObjects public_oe property

public JsDictionary cachedObjects
return LevelObject>.JsDictionary

mainCanvas public_oe property

public CanvasInformation,OurSonic.Utility mainCanvas
return OurSonic.Utility.CanvasInformation

objectManager public_oe property

public ObjectManager,OurSonic.Level.Objects objectManager
return OurSonic.Level.Objects.ObjectManager

overrideRealScale public_oe property

public DoublePoint,OurSonic.Utility overrideRealScale
return OurSonic.Utility.DoublePoint

tickCount public_oe property

public int tickCount
return int

waitingForTickContinue public_oe property

public bool waitingForTickContinue
return bool