Свойство | Тип | Описание | |
---|---|---|---|
Dead | bool | ||
DeathTimer | float | ||
Health | float | ||
HomingMissileLevel | short | ||
InvincibleFrame | float | ||
InvincibleTimer | float | ||
Kills | int | ||
Lives | int | ||
MaxHealth | float | ||
Score | int | ||
defaultGunTimer | float | ||
energyBlastLevel | int | ||
energyBlastTimer | float |
Свойство | Тип | Описание | |
---|---|---|---|
position | Vector2 | ||
railgunSpriteBounds | |||
spriteBounds | Microsoft.Xna.Framework.Rectangle[] | ||
spriteSheet | Microsoft.Xna.Framework.Graphics.Texture2D | ||
velocity | Vector2 |
Метод | Описание | |
---|---|---|
ApplyPowerup ( PowerupType powerup ) : void |
Applies the specified powerup to the ship
|
|
ClearPowerups ( ) : void | ||
Draw ( float elaspedTime, |
Draw the ship on-screen
|
|
EndLevel ( float elaspedTime ) : void | ||
GetPosition ( ) : Vector2 | ||
MoveShip ( Vector2 direction ) : void | ||
PlayerShip ( uint id, Microsoft.Xna.Framework.Content.ContentManager content ) : System |
Creates a new Player ship instance and initializes sound effects
|
|
ScrollWithMap ( float elapsedTime ) : void |
Scrolls the object with the map
|
|
Update ( float elapsedTime ) : void |
Updates the ship
|
Метод | Описание | |
---|---|---|
ApplyBlades ( ) : void |
A helper function that initializes the blades powerup. //Puts a giant spinning blade over player position and doubles the players velocity.
|
|
ApplyTriShield ( ) : void |
A helper function that initializes the tri-shield. Creates three trishield balls.
|
|
GetDrunk ( ) : void |
Makes the player drunk. If the player is already drunk the player is just made drunk for longer. The drunk counter is increased by a random number. Time to be drunk is between 5 and 10 seconds.
|
|
SoberUp ( ) : void |
Makes the player sober. Activated when the drunk time has run out.
|
|
TriggerBirdcrap ( ) : void |
A helper that fires birdcrap from the ship. Coraspondes to the birdcrap power up.
|
|
TriggerBomb ( ) : void | ||
TriggerDroneWave ( ) : void |
A helper function that fires a wide drone wave from the ship, corresponding to the fireball powerup.
|
|
TriggerEightBallShield ( ) : void |
Helper function to create an eightballshield around the ship
|
|
TriggerEnergyBlast ( ) : void |
A helper function that fires an energy blast from the ship, corresponding to the energy blast powerup
|
|
TriggerFireball ( ) : void |
A helper function that fires a fireball from the ship, corresponding to the fireball powerup
|
|
TriggerFrostball ( ) : void |
A helper function that fires a frostball from the ship, corresponding to the frostball powerup
|
|
TriggerHomingMissile ( ) : void |
Handles the firing of a homing missile
|
|
TriggerMeteor ( ) : void |
A helper function that starts a meteor storm, corresponding to the meteor powerup
|
|
TriggerRailgun ( ) : void |
Fires the railgun sabot round from the ship, corresponding to the railgun powerup
|
|
TriggerShotgun ( ) : void |
A helper function that shoots a spray shot from the ship when the spray shot powerup is active
|
|
unApplyBlades ( ) : void |
A helper function that will remove the Blade powerup and restore defaults.
|
public ApplyPowerup ( PowerupType powerup ) : void | ||
powerup | PowerupType | the indicated powerup |
Результат | void |
public Draw ( float elaspedTime, |
||
elaspedTime | float | The elapsed time |
spriteBatch | An already-initialized spritebatch, ready for Draw() commands | |
Результат | void |
public EndLevel ( float elaspedTime ) : void | ||
elaspedTime | float | |
Результат | void |
public MoveShip ( Vector2 direction ) : void | ||
direction | Vector2 | |
Результат | void |
public PlayerShip ( uint id, Microsoft.Xna.Framework.Content.ContentManager content ) : System | ||
id | uint | the unique id of the Player ship |
content | Microsoft.Xna.Framework.Content.ContentManager | |
Результат | System |
public ScrollWithMap ( float elapsedTime ) : void | ||
elapsedTime | float | The in-game time between the previous and current frame |
Результат | void |
public Update ( float elapsedTime ) : void | ||
elapsedTime | float | |
Результат | void |
public static short HomingMissileLevel | ||
Результат | short |
protected Rectangle,Microsoft.Xna.Framework railgunSpriteBounds | ||
Результат |
protected Rectangle[],Microsoft.Xna.Framework spriteBounds | ||
Результат | Microsoft.Xna.Framework.Rectangle[] |
protected Texture2D,Microsoft.Xna.Framework.Graphics spriteSheet | ||
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |