C# Class Bug.GameObjects.Fighter

Inheritance: Dynamic
Exibir arquivo Open project: Projectfights/Fight-insect Class Usage Examples

Private Properties

Property Type Description
GetPunch GameObject
HandleInputs void
getOverlayPos Vector2

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
Fighter ( Vector2 pos, Microsoft.Xna.Framework.Graphics.Texture2D overlay_, AnimatedTexture2D idleAnim_, AnimatedTexture2D punchAnim_, AnimatedTexture2D recoilAnim_, FighterInput input_, HitBox punch_, bool flip_, float speed_, double health_, double power_ ) : Bug.Display
GetBoundingBox ( ) : Rectangle
OnCollision ( GameObject other, Direction dir ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
GetPunch ( ) : GameObject
HandleInputs ( ) : void
getOverlayPos ( ) : Vector2

Method Details

Draw() public method

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

Fighter() public method

public Fighter ( Vector2 pos, Microsoft.Xna.Framework.Graphics.Texture2D overlay_, AnimatedTexture2D idleAnim_, AnimatedTexture2D punchAnim_, AnimatedTexture2D recoilAnim_, FighterInput input_, HitBox punch_, bool flip_, float speed_, double health_, double power_ ) : Bug.Display
pos Vector2
overlay_ Microsoft.Xna.Framework.Graphics.Texture2D
idleAnim_ Bug.Utils.AnimatedTexture2D
punchAnim_ Bug.Utils.AnimatedTexture2D
recoilAnim_ Bug.Utils.AnimatedTexture2D
input_ FighterInput
punch_ HitBox
flip_ bool
speed_ float
health_ double
power_ double
return Bug.Display

GetBoundingBox() public method

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

OnCollision() public method

public OnCollision ( GameObject other, Direction dir ) : void
other GameObject
dir Direction
return void

Update() public method

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