C# 클래스 OurSonic.Level.Objects.LevelObjectInfo

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

공개 프로퍼티들

프로퍼티 타입 설명
lastDrawTick int

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Collide ( Sonic sonic, string sensor, dynamic piece ) : bool
Collides ( Point sonic ) : LevelObjectPiece
Collision ( Point sonic, bool isHurtMap ) : LevelObjectPiece
Draw ( CanvasRenderingContext2D canvas, int x, int y, bool showHeightMap ) : void
GetRect ( ) : Rectangle
HurtSonic ( Sonic sonic, string sensor, dynamic piece ) : bool
HurtsSonic ( Point sonic ) : LevelObjectPiece
Kill ( ) : void
LevelObjectInfo ( SLDataObjectEntry o ) : System
Log ( string txt, int level = 100 ) : void
MainPieceLayout ( ) : LevelObjectPieceLayout
Reset ( ) : void
SetObjectData ( LevelObject obj ) : void
SetPieceLayoutIndex ( int ind ) : void
Tick ( LevelObjectInfo @object, SonicLevel level, Sonic sonic ) : bool
twoDArray ( int map, int x, int y, bool xflip, bool yflip ) : bool

메소드 상세

Collide() 공개 메소드

public Collide ( Sonic sonic, string sensor, dynamic piece ) : bool
sonic Sonic
sensor string
piece dynamic
리턴 bool

Collides() 공개 메소드

public Collides ( Point sonic ) : LevelObjectPiece
sonic Point
리턴 LevelObjectPiece

Collision() 공개 메소드

public Collision ( Point sonic, bool isHurtMap ) : LevelObjectPiece
sonic Point
isHurtMap bool
리턴 LevelObjectPiece

Draw() 공개 메소드

public Draw ( CanvasRenderingContext2D canvas, int x, int y, bool showHeightMap ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
x int
y int
showHeightMap bool
리턴 void

GetRect() 공개 메소드

public GetRect ( ) : Rectangle
리턴 OurSonic.Utility.Rectangle

HurtSonic() 공개 메소드

public HurtSonic ( Sonic sonic, string sensor, dynamic piece ) : bool
sonic Sonic
sensor string
piece dynamic
리턴 bool

HurtsSonic() 공개 메소드

public HurtsSonic ( Point sonic ) : LevelObjectPiece
sonic Point
리턴 LevelObjectPiece

Kill() 공개 메소드

public Kill ( ) : void
리턴 void

LevelObjectInfo() 공개 메소드

public LevelObjectInfo ( SLDataObjectEntry o ) : System
o OurSonicModels.SLDataObjectEntry
리턴 System

Log() 공개 메소드

public Log ( string txt, int level = 100 ) : void
txt string
level int
리턴 void

MainPieceLayout() 공개 메소드

public MainPieceLayout ( ) : LevelObjectPieceLayout
리턴 LevelObjectPieceLayout

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

SetObjectData() 공개 메소드

public SetObjectData ( LevelObject obj ) : void
obj LevelObject
리턴 void

SetPieceLayoutIndex() 공개 메소드

public SetPieceLayoutIndex ( int ind ) : void
ind int
리턴 void

Tick() 공개 메소드

public Tick ( LevelObjectInfo @object, SonicLevel level, Sonic sonic ) : bool
@object LevelObjectInfo
level SonicLevel
sonic Sonic
리턴 bool

twoDArray() 공개 메소드

public twoDArray ( int map, int x, int y, bool xflip, bool yflip ) : bool
map int
x int
y int
xflip bool
yflip bool
리턴 bool

프로퍼티 상세

lastDrawTick 공개적으로 프로퍼티

public int lastDrawTick
리턴 int