C# Class Manic_Shooter.Classes.HunterEnemy

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

Public Methods

Method Description
AddPlayerPosition ( Vector2 position ) : void
Attacking ( GameTime gameTime ) : bool
Destroy ( ) : void
Entering ( GameTime gameTime ) : bool
Fire ( System.TimeSpan elapsedTime ) : void
GetPlayerPosition ( ) : Vector2
HunterEnemy ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int health ) : System
HunterEnemy ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int health, Vector2 targetEntryPosition ) : System
Leaving ( GameTime gameTime ) : bool
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
Initialize ( Vector2 entryPosition ) : void

Method Details

AddPlayerPosition() public method

public AddPlayerPosition ( Vector2 position ) : void
position Vector2
return void

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

public Fire ( System.TimeSpan elapsedTime ) : void
elapsedTime System.TimeSpan
return void

GetPlayerPosition() public method

public GetPlayerPosition ( ) : Vector2
return Vector2

HunterEnemy() public method

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

HunterEnemy() public method

public HunterEnemy ( 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

Leaving() public method

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

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