C# Class OurSonic.Sonic.SensorManager

Mostra file Open project: OurSonic/OurSonicSharp Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddSensor ( string letter, Sensor sensor ) : Sensor
BuildChunk ( TileChunk chunk, bool isLayerOne ) : void
Check ( Sonic character ) : bool
CreateHorizontalSensor ( string letter, int y, int x1, int x2, string color, bool ignoreSolid = false ) : Sensor
CreateVerticalSensor ( string letter, int x, int y1, int y2, string color, bool ignoreSolid = false ) : Sensor
Draw ( CanvasRenderingContext2D canvas, Sonic sonic ) : void
GetResult ( string mn ) : SensorM
SensorManager ( ) : System

Method Details

AddSensor() public method

public AddSensor ( string letter, Sensor sensor ) : Sensor
letter string
sensor Sensor
return Sensor

BuildChunk() public method

public BuildChunk ( TileChunk chunk, bool isLayerOne ) : void
chunk OurSonic.Level.Tiles.TileChunk
isLayerOne bool
return void

Check() public method

public Check ( Sonic character ) : bool
character Sonic
return bool

CreateHorizontalSensor() public method

public CreateHorizontalSensor ( string letter, int y, int x1, int x2, string color, bool ignoreSolid = false ) : Sensor
letter string
y int
x1 int
x2 int
color string
ignoreSolid bool
return Sensor

CreateVerticalSensor() public method

public CreateVerticalSensor ( string letter, int x, int y1, int y2, string color, bool ignoreSolid = false ) : Sensor
letter string
x int
y1 int
y2 int
color string
ignoreSolid bool
return Sensor

Draw() public method

public Draw ( CanvasRenderingContext2D canvas, Sonic sonic ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
sonic Sonic
return void

GetResult() public method

public GetResult ( string mn ) : SensorM
mn string
return SensorM

SensorManager() public method

public SensorManager ( ) : System
return System