Property | Type | Description | |
---|---|---|---|
IEnemy | void |
Method | Description | |
---|---|---|
Attacking ( |
||
Destroy ( ) : void | ||
Entering ( |
||
Fire ( System.TimeSpan elapsedTime ) : void |
Fires a shot from all available weapons
|
|
Initialize ( Vector2 position, Vector2 targetEntryPosition ) : void | ||
Leaving ( |
||
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 ( |
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 | |
---|---|---|
IEnemy ( System.TimeSpan elapsedTime ) : void |
public Attacking ( |
||
gameTime | ||
return | bool |
public Entering ( |
||
gameTime | ||
return | bool |
public Fire ( System.TimeSpan elapsedTime ) : void | ||
elapsedTime | System.TimeSpan | The time elapsed since the last update |
return | void |
public Initialize ( Vector2 position, Vector2 targetEntryPosition ) : void | ||
position | Vector2 | |
targetEntryPosition | Vector2 | |
return | void |
public Leaving ( |
||
gameTime | ||
return | bool |
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 |
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 |
public Update ( |
||
gameTime | The time elapsed since the last update | |
return | void |