C# Class Bug.GameObjects.HitBox

Inheritance: Bug.GameObject
Mostrar archivo Open project: Projectfights/Fight-insect Class Usage Examples

Public Properties

Property Type Description
parent Fighter

Public Methods

Method Description
Draw ( SpriteBatch s ) : void
GetBoundingBox ( ) : Rectangle
GetDamage ( ) : double
GetNoise ( ) : SoundEffect
HitBox ( Fighter parent, SoundEffect noise, List frames ) : System
IsActive ( ) : bool
Trigger ( ) : void
Update ( GameTime t ) : void

Method Details

Draw() public method

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

GetBoundingBox() public method

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

GetDamage() public method

public GetDamage ( ) : double
return double

GetNoise() public method

public GetNoise ( ) : SoundEffect
return Microsoft.Xna.Framework.Audio.SoundEffect

HitBox() public method

public HitBox ( Fighter parent, SoundEffect noise, List frames ) : System
parent Fighter
noise Microsoft.Xna.Framework.Audio.SoundEffect
frames List
return System

IsActive() public method

public IsActive ( ) : bool
return bool

Trigger() public method

public Trigger ( ) : void
return void

Update() public method

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

Property Details

parent public_oe property

public Fighter,Bug.GameObjects parent
return Fighter