C# 클래스 Dabrorius.MonoPunk.Entity

파일 보기 프로젝트 열기: dabrorius/MonoPunk

공개 프로퍼티들

프로퍼티 타입 설명
Active System.Boolean
Collidable System.Boolean
OriginX int
OriginY int
Position Vector2
Size Vector2
Visible System.Boolean
renderTarget Microsoft.Xna.Framework.Graphics.SpriteBatch

공개 메소드들

메소드 설명
Added ( ) : void
Collide ( String type, float x, float y ) : Entity
Entity ( float x, float y, Graphic graphic = null ) : System
Removed ( ) : void
Render ( ) : void
Update ( ) : void
setHitbox ( int width, int height, int originX, int originY ) : void

메소드 상세

Added() 공개 메소드

public Added ( ) : void
리턴 void

Collide() 공개 메소드

public Collide ( String type, float x, float y ) : Entity
type String
x float
y float
리턴 Entity

Entity() 공개 메소드

public Entity ( float x, float y, Graphic graphic = null ) : System
x float
y float
graphic Graphic
리턴 System

Removed() 공개 메소드

public Removed ( ) : void
리턴 void

Render() 공개 메소드

public Render ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

setHitbox() 공개 메소드

public setHitbox ( int width, int height, int originX, int originY ) : void
width int
height int
originX int
originY int
리턴 void

프로퍼티 상세

Active 공개적으로 프로퍼티

public Boolean,System Active
리턴 System.Boolean

Collidable 공개적으로 프로퍼티

public Boolean,System Collidable
리턴 System.Boolean

OriginX 공개적으로 프로퍼티

public int OriginX
리턴 int

OriginY 공개적으로 프로퍼티

public int OriginY
리턴 int

Position 공개적으로 프로퍼티

public Vector2 Position
리턴 Vector2

Size 공개적으로 프로퍼티

public Vector2 Size
리턴 Vector2

Visible 공개적으로 프로퍼티

public Boolean,System Visible
리턴 System.Boolean

renderTarget 공개적으로 프로퍼티

public SpriteBatch,Microsoft.Xna.Framework.Graphics renderTarget
리턴 Microsoft.Xna.Framework.Graphics.SpriteBatch