C# Class Bug.GameObjects.Fighter

Inheritance: Dynamic
Afficher le fichier Open project: Projectfights/Fight-insect Class Usage Examples

Private Properties

Свойство Type Description
GetPunch GameObject
HandleInputs void
getOverlayPos Vector2

Méthodes publiques

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

Méthode Description
GetPunch ( ) : GameObject
HandleInputs ( ) : void
getOverlayPos ( ) : Vector2

Method Details

Draw() public méthode

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

Fighter() public méthode

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
Résultat Bug.Display

GetBoundingBox() public méthode

public GetBoundingBox ( ) : Rectangle
Résultat Microsoft.Xna.Framework.Rectangle

OnCollision() public méthode

public OnCollision ( GameObject other, Direction dir ) : void
other GameObject
dir Direction
Résultat void

Update() public méthode

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