C# Class Bug.GameObjects.HealthBar

Inheritance: GameObject
Show file Open project: Projectfights/Fight-insect Class Usage Examples

Public Methods

Method Description
Draw ( Microsoft spriteBatch ) : void
GetBoundingBox ( ) : Rectangle
HealthBar ( Fighter fighter, Microsoft.Xna.Framework.Graphics.Texture2D tex_, bool flip_ ) : Microsoft.Xna.Framework
HealthBar ( Fighter fighter, Microsoft.Xna.Framework.Graphics.Texture2D tex_, bool flip_, Vector2 pos ) : Microsoft.Xna.Framework
HealthBar ( Fighter fighter, Microsoft.Xna.Framework.Graphics.Texture2D tex_, bool flip_, Vector2 pos, int baseWidth_ ) : Microsoft.Xna.Framework
Update ( GameTime t ) : void

Method Details

Draw() public method

public Draw ( Microsoft spriteBatch ) : void
spriteBatch Microsoft
return void

GetBoundingBox() public method

public GetBoundingBox ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

HealthBar() public method

public HealthBar ( Fighter fighter, Microsoft.Xna.Framework.Graphics.Texture2D tex_, bool flip_ ) : Microsoft.Xna.Framework
fighter Fighter
tex_ Microsoft.Xna.Framework.Graphics.Texture2D
flip_ bool
return Microsoft.Xna.Framework

HealthBar() public method

public HealthBar ( Fighter fighter, Microsoft.Xna.Framework.Graphics.Texture2D tex_, bool flip_, Vector2 pos ) : Microsoft.Xna.Framework
fighter Fighter
tex_ Microsoft.Xna.Framework.Graphics.Texture2D
flip_ bool
pos Microsoft.Xna.Framework.Vector2
return Microsoft.Xna.Framework

HealthBar() public method

public HealthBar ( Fighter fighter, Microsoft.Xna.Framework.Graphics.Texture2D tex_, bool flip_, Vector2 pos, int baseWidth_ ) : Microsoft.Xna.Framework
fighter Fighter
tex_ Microsoft.Xna.Framework.Graphics.Texture2D
flip_ bool
pos Microsoft.Xna.Framework.Vector2
baseWidth_ int
return Microsoft.Xna.Framework

Update() public method

public Update ( GameTime t ) : void
t Microsoft.Xna.Framework.GameTime
return void