C# Class SuperCaissiere.Engine.Physics.Hitbox

Simple rectangle hitbox
Afficher le fichier Open project: valryon/super-caissiere Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

Collide() public static méthode

Collision with another rectangle hitbox (from Platformer 4.0)
public static Collide ( Hitbox rectHitboxA, Hitbox rectHitboxB ) : Vector2
rectHitboxA Hitbox
rectHitboxB Hitbox
Résultat Vector2

Collide() public static méthode

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

Draw() public méthode

public Draw ( Graphics spriteBatch ) : void
spriteBatch Graphics
Résultat void

Hitbox() public méthode

Collision box with specified dimension
public Hitbox ( Rectangle dimensionRect ) : System
dimensionRect Microsoft.Xna.Framework.Rectangle
Résultat System

Update() public méthode

public Update ( GameTime gameTime, Vector2 entityLocation ) : void
gameTime Microsoft.Xna.Framework.GameTime
entityLocation Vector2
Résultat void

UpdateBounds() public méthode

public UpdateBounds ( ) : void
Résultat void