C# 클래스 OurSonic.Sonic.Sonic

파일 보기 프로젝트 열기: OurSonic/OurSonicSharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
myRec OurSonic.Utility.Rectangle
obtainedRing bool>.JsDictionary
sonicLastHitTick int

Private Properties

프로퍼티 타입 설명
EffectPhysics void
GetBestSensor SensorM
GetHalfImageSize Point
GetOffsetFromImage Point
UpdateSprite void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
EffectPhysics ( ) : void
GetBestSensor ( SensorM sensor1, SensorM sensor2, RotationMode mode ) : SensorM
GetHalfImageSize ( ) : Point
GetOffsetFromImage ( ) : Point
UpdateSprite ( ) : void

메소드 상세

CheckCollisionLine() 공개 메소드

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

CheckCollisionWithObjects() 공개 메소드

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

CheckCollisionWithRings() 공개 메소드

public CheckCollisionWithRings ( ) : void
리턴 void

Debug() 공개 메소드

public Debug ( ) : void
리턴 void

Draw() 공개 메소드

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

DrawUI() 공개 메소드

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

Hit() 공개 메소드

public Hit ( double x, double y ) : void
x double
y double
리턴 void

Invulnerable() 공개 메소드

public Invulnerable ( ) : bool
리턴 bool

PressCrouch() 공개 메소드

public PressCrouch ( ) : void
리턴 void

PressJump() 공개 메소드

public PressJump ( ) : void
리턴 void

PressLeft() 공개 메소드

public PressLeft ( ) : void
리턴 void

PressRight() 공개 메소드

public PressRight ( ) : void
리턴 void

PressUp() 공개 메소드

public PressUp ( ) : void
리턴 void

ReleaseCrouch() 공개 메소드

public ReleaseCrouch ( ) : void
리턴 void

ReleaseJump() 공개 메소드

public ReleaseJump ( ) : void
리턴 void

ReleaseLeft() 공개 메소드

public ReleaseLeft ( ) : void
리턴 void

ReleaseRight() 공개 메소드

public ReleaseRight ( ) : void
리턴 void

ReleaseUp() 공개 메소드

public ReleaseUp ( ) : void
리턴 void

Sonic() 공개 메소드

public Sonic ( ) : System
리턴 System

Tick() 공개 메소드

public Tick ( SonicLevel sonicLevel ) : void
sonicLevel OurSonic.Level.SonicLevel
리턴 void

UpdateMode() 공개 메소드

public UpdateMode ( ) : void
리턴 void

프로퍼티 상세

myRec 공개적으로 프로퍼티

public Rectangle,OurSonic.Utility myRec
리턴 OurSonic.Utility.Rectangle

obtainedRing 공개적으로 프로퍼티

public JsDictionary obtainedRing
리턴 bool>.JsDictionary

sonicLastHitTick 공개적으로 프로퍼티

public int sonicLastHitTick
리턴 int