C# Class LDEngine.Entities.Hero

Inheritance: Entity
ファイルを表示 Open project: GarethIW/LDEngine

Public Properties

Property Type Description
FaceDir int
Life int

Public Methods

Method Description
Draw ( SpriteBatch sb ) : void
Hero ( Texture2D spritesheet, Rectangle hitbox, Vector2 hitboxoffset ) : System
OnBoxCollision ( Entity collided, Rectangle intersect ) : void
Reset ( ) : void
Update ( GameTime gameTime, Map gameMap ) : void

Private Methods

Method Description
CheckMapCollisions ( Map gameMap ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Hero() public method

public Hero ( Texture2D spritesheet, Rectangle hitbox, Vector2 hitboxoffset ) : System
spritesheet Texture2D
hitbox Rectangle
hitboxoffset Vector2
return System

OnBoxCollision() public method

public OnBoxCollision ( Entity collided, Rectangle intersect ) : void
collided Entity
intersect Rectangle
return void

Reset() public method

public Reset ( ) : void
return void

Update() public method

public Update ( GameTime gameTime, Map gameMap ) : void
gameTime GameTime
gameMap Map
return void

Property Details

FaceDir public_oe property

public int FaceDir
return int

Life public_oe property

public int Life
return int