C# Class OurSonic.Sonic.Sonic

Mostrar archivo Open project: OurSonic/OurSonicSharp Class Usage Examples

Public Properties

Property Type Description
myRec OurSonic.Utility.Rectangle
obtainedRing bool>.JsDictionary
sonicLastHitTick int

Private Properties

Property Type Description
EffectPhysics void
GetBestSensor SensorM
GetHalfImageSize Point
GetOffsetFromImage Point
UpdateSprite void

Public Methods

Method Description
CheckCollisionLine ( int p0, int p1, int p2, int p3 ) : SensorM
CheckCollisionWithObjects ( int x, int y, string letter ) : bool
CheckCollisionWithRings ( ) : void
Debug ( ) : void
Draw ( CanvasRenderingContext2D canvas ) : void
DrawUI ( CanvasRenderingContext2D canvas, Point pos ) : void
Hit ( double x, double y ) : void
Invulnerable ( ) : bool
PressCrouch ( ) : void
PressJump ( ) : void
PressLeft ( ) : void
PressRight ( ) : void
PressUp ( ) : void
ReleaseCrouch ( ) : void
ReleaseJump ( ) : void
ReleaseLeft ( ) : void
ReleaseRight ( ) : void
ReleaseUp ( ) : void
Sonic ( ) : System
Tick ( SonicLevel sonicLevel ) : void
UpdateMode ( ) : void

Private Methods

Method Description
EffectPhysics ( ) : void
GetBestSensor ( SensorM sensor1, SensorM sensor2, RotationMode mode ) : SensorM
GetHalfImageSize ( ) : Point
GetOffsetFromImage ( ) : Point
UpdateSprite ( ) : void

Method Details

CheckCollisionLine() public method

public CheckCollisionLine ( int p0, int p1, int p2, int p3 ) : SensorM
p0 int
p1 int
p2 int
p3 int
return SensorM

CheckCollisionWithObjects() public method

public CheckCollisionWithObjects ( int x, int y, string letter ) : bool
x int
y int
letter string
return bool

CheckCollisionWithRings() public method

public CheckCollisionWithRings ( ) : void
return void

Debug() public method

public Debug ( ) : void
return void

Draw() public method

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

DrawUI() public method

public DrawUI ( CanvasRenderingContext2D canvas, Point pos ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
pos Point
return void

Hit() public method

public Hit ( double x, double y ) : void
x double
y double
return void

Invulnerable() public method

public Invulnerable ( ) : bool
return bool

PressCrouch() public method

public PressCrouch ( ) : void
return void

PressJump() public method

public PressJump ( ) : void
return void

PressLeft() public method

public PressLeft ( ) : void
return void

PressRight() public method

public PressRight ( ) : void
return void

PressUp() public method

public PressUp ( ) : void
return void

ReleaseCrouch() public method

public ReleaseCrouch ( ) : void
return void

ReleaseJump() public method

public ReleaseJump ( ) : void
return void

ReleaseLeft() public method

public ReleaseLeft ( ) : void
return void

ReleaseRight() public method

public ReleaseRight ( ) : void
return void

ReleaseUp() public method

public ReleaseUp ( ) : void
return void

Sonic() public method

public Sonic ( ) : System
return System

Tick() public method

public Tick ( SonicLevel sonicLevel ) : void
sonicLevel OurSonic.Level.SonicLevel
return void

UpdateMode() public method

public UpdateMode ( ) : void
return void

Property Details

myRec public_oe property

public Rectangle,OurSonic.Utility myRec
return OurSonic.Utility.Rectangle

obtainedRing public_oe property

public JsDictionary obtainedRing
return bool>.JsDictionary

sonicLastHitTick public_oe property

public int sonicLastHitTick
return int