C# 클래스 SuperCaissiere.Engine.Physics.Hitbox

Simple rectangle hitbox
파일 보기 프로젝트 열기: valryon/super-caissiere 1 사용 예제들

공개 메소드들

메소드 설명
Collide ( Hitbox rectHitboxA, Hitbox rectHitboxB ) : Vector2

Collision with another rectangle hitbox (from Platformer 4.0)

Collide ( Hitbox rectBox, Rectangle zoneB, Vector2 &depth ) : bool

Tile collisions

Draw ( Graphics spriteBatch ) : void
Hitbox ( Rectangle dimensionRect ) : System

Collision box with specified dimension

Update ( GameTime gameTime, Vector2 entityLocation ) : void
UpdateBounds ( ) : void

메소드 상세

Collide() 공개 정적인 메소드

Collision with another rectangle hitbox (from Platformer 4.0)
public static Collide ( Hitbox rectHitboxA, Hitbox rectHitboxB ) : Vector2
rectHitboxA Hitbox
rectHitboxB Hitbox
리턴 Vector2

Collide() 공개 정적인 메소드

Tile collisions
public static Collide ( Hitbox rectBox, Rectangle zoneB, Vector2 &depth ) : bool
rectBox Hitbox
zoneB Microsoft.Xna.Framework.Rectangle
depth Vector2
리턴 bool

Draw() 공개 메소드

public Draw ( Graphics spriteBatch ) : void
spriteBatch Graphics
리턴 void

Hitbox() 공개 메소드

Collision box with specified dimension
public Hitbox ( Rectangle dimensionRect ) : System
dimensionRect Microsoft.Xna.Framework.Rectangle
리턴 System

Update() 공개 메소드

public Update ( GameTime gameTime, Vector2 entityLocation ) : void
gameTime Microsoft.Xna.Framework.GameTime
entityLocation Vector2
리턴 void

UpdateBounds() 공개 메소드

public UpdateBounds ( ) : void
리턴 void