C# Class Manic_Shooter.Classes.DefaultPlayer

Inheritance: Sprite, IPlayer, ISprite
Afficher le fichier Open project: TheGameDevelopmentClub/Manic-Shooter Class Usage Examples

Méthodes publiques

Méthode Description
AddScore ( int additionalPoints ) : void
AddVelocity ( Vector2 appliedVelocity, uint maxSpeed = 200000 ) : void
ClearScore ( ) : void
DefaultPlayer ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position ) : System
Destroy ( ) : void
Fire ( ) : void
HitBy ( IProjectile projectile ) : void
Render ( SpriteBatch spriteBatch ) : void
ResetGuns ( ) : void
SetVelocity ( Vector2 newVelocity ) : void
Update ( GameTime gameTime ) : void
UpdateWeaponPositions ( ) : void

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

UpgradeGun ( System weaponType ) : void
gameKey_moveDownPressed ( Keys key ) : void
gameKey_moveDownReleased ( Keys key ) : void
gameKey_moveLeftPressed ( Keys key ) : void
gameKey_moveLeftReleased ( Keys key ) : void
gameKey_moveRightPressed ( Keys key ) : void
gameKey_moveRightReleased ( Keys key ) : void
gameKey_moveUpPressed ( Keys key ) : void
gameKey_moveUpReleased ( Keys key ) : void
gameKey_shootPressed ( Keys key ) : void

Private Methods

Méthode Description
DebugFlash ( ) : void
EnableKeyboardEvents ( bool enabled ) : void
ResetVelocityOnRevive ( ) : void

Method Details

AddScore() public méthode

public AddScore ( int additionalPoints ) : void
additionalPoints int
Résultat void

AddVelocity() public méthode

public AddVelocity ( Vector2 appliedVelocity, uint maxSpeed = 200000 ) : void
appliedVelocity Vector2
maxSpeed uint
Résultat void

ClearScore() public méthode

public ClearScore ( ) : void
Résultat void

DefaultPlayer() public méthode

public DefaultPlayer ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
Résultat System

Destroy() public méthode

public Destroy ( ) : void
Résultat void

Fire() public méthode

public Fire ( ) : void
Résultat void

HitBy() public méthode

public HitBy ( IProjectile projectile ) : void
projectile IProjectile
Résultat void

Render() public méthode

public Render ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

ResetGuns() public méthode

public ResetGuns ( ) : void
Résultat void

SetVelocity() public méthode

public SetVelocity ( Vector2 newVelocity ) : void
newVelocity Vector2
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

UpdateWeaponPositions() public méthode

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
Résultat void

UpgradeGun() public méthode

public UpgradeGun ( System weaponType ) : void
weaponType System
Résultat void

gameKey_moveDownPressed() public méthode

public gameKey_moveDownPressed ( Keys key ) : void
key Keys
Résultat void

gameKey_moveDownReleased() public méthode

public gameKey_moveDownReleased ( Keys key ) : void
key Keys
Résultat void

gameKey_moveLeftPressed() public méthode

public gameKey_moveLeftPressed ( Keys key ) : void
key Keys
Résultat void

gameKey_moveLeftReleased() public méthode

public gameKey_moveLeftReleased ( Keys key ) : void
key Keys
Résultat void

gameKey_moveRightPressed() public méthode

public gameKey_moveRightPressed ( Keys key ) : void
key Keys
Résultat void

gameKey_moveRightReleased() public méthode

public gameKey_moveRightReleased ( Keys key ) : void
key Keys
Résultat void

gameKey_moveUpPressed() public méthode

public gameKey_moveUpPressed ( Keys key ) : void
key Keys
Résultat void

gameKey_moveUpReleased() public méthode

public gameKey_moveUpReleased ( Keys key ) : void
key Keys
Résultat void

gameKey_shootPressed() public méthode

public gameKey_shootPressed ( Keys key ) : void
key Keys
Résultat void