C# Class Manic_Shooter.Classes.TriangleEnemy

Inheritance: Sprite, IEnemy
Exibir arquivo Open project: TheGameDevelopmentClub/Manic-Shooter Class Usage Examples

Private Properties

Property Type Description
IEnemy void

Public Methods

Method Description
Attacking ( GameTime gameTime ) : bool
Destroy ( ) : void
Entering ( GameTime gameTime ) : bool
Fire ( System.TimeSpan elapsedTime ) : void

Fires a shot from all available weapons

Initialize ( Vector2 position, Vector2 targetEntryPosition ) : void
Leaving ( GameTime gameTime ) : bool
TriangleEnemy ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int health ) : System
TriangleEnemy ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int health, Vector2 targetEntryPosition ) : System
Update ( GameTime gameTime ) : void

Updates this enemy instance

UpdateWeaponPositions ( ) : void

Updates the position of each of the weapons so they stay in one place relative to the movement of this enemy instance

Private Methods

Method Description
IEnemy ( System.TimeSpan elapsedTime ) : void

Method Details

Attacking() public method

public Attacking ( GameTime gameTime ) : bool
gameTime Microsoft.Xna.Framework.GameTime
return bool

Destroy() public method

public Destroy ( ) : void
return void

Entering() public method

public Entering ( GameTime gameTime ) : bool
gameTime Microsoft.Xna.Framework.GameTime
return bool

Fire() public method

Fires a shot from all available weapons
public Fire ( System.TimeSpan elapsedTime ) : void
elapsedTime System.TimeSpan The time elapsed since the last update
return void

Initialize() public method

public Initialize ( Vector2 position, Vector2 targetEntryPosition ) : void
position Vector2
targetEntryPosition Vector2
return void

Leaving() public method

public Leaving ( GameTime gameTime ) : bool
gameTime Microsoft.Xna.Framework.GameTime
return bool

TriangleEnemy() public method

public TriangleEnemy ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int health ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
health int
return System

TriangleEnemy() public method

public TriangleEnemy ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int health, Vector2 targetEntryPosition ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
health int
targetEntryPosition Vector2
return System

Update() public method

Updates this enemy instance
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The time elapsed since the last update
return void

UpdateWeaponPositions() public method

Updates the position of each of the weapons so they stay in one place relative to the movement of this enemy instance
public UpdateWeaponPositions ( ) : void
return void