Property | Type | Description | |
---|---|---|---|
_state | EnemyState | ||
_weapons | List |
||
targetEntryPoint | Vector2 |
Method | Description | |
---|---|---|
DefaultEnemy ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int health ) : System | ||
DefaultEnemy ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int health, Vector2 targetEntryPoint ) : System | ||
Destroy ( ) : void | ||
Entering ( |
||
Fire ( System.TimeSpan elapsedTime ) : void |
Fires a shot from all available weapons
|
|
HorizontalPasses ( |
An enemy movement where the enemy passes horizontally across the screen while firing shots.
|
|
LeaveScreen ( System.TimeSpan elapsedTime ) : bool | ||
Update ( |
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
|
Method | Description | |
---|---|---|
InitializeDefaultEnemy ( Vector2 TargetEntryPoint ) : void |
public DefaultEnemy ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int health ) : System | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
position | Vector2 | |
health | int | |
return | System |
public DefaultEnemy ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, int health, Vector2 targetEntryPoint ) : System | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
position | Vector2 | |
health | int | |
targetEntryPoint | Vector2 | |
return | System |
public Entering ( |
||
gameTime | ||
return | bool |
public Fire ( System.TimeSpan elapsedTime ) : void | ||
elapsedTime | System.TimeSpan | The time elapsed since the last update |
return | void |
public HorizontalPasses ( |
||
gameTime | ||
return | bool |
public LeaveScreen ( System.TimeSpan elapsedTime ) : bool | ||
elapsedTime | System.TimeSpan | |
return | bool |
public Update ( |
||
gameTime | The time elapsed since the last update | |
return | void |