C# Class Manic_Shooter.Classes.DefaultPlayer

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

Public Methods

Method 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

Method Description
DebugFlash ( ) : void
EnableKeyboardEvents ( bool enabled ) : void
ResetVelocityOnRevive ( ) : void

Method Details

AddScore() public method

public AddScore ( int additionalPoints ) : void
additionalPoints int
return void

AddVelocity() public method

public AddVelocity ( Vector2 appliedVelocity, uint maxSpeed = 200000 ) : void
appliedVelocity Vector2
maxSpeed uint
return void

ClearScore() public method

public ClearScore ( ) : void
return void

DefaultPlayer() public method

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

Destroy() public method

public Destroy ( ) : void
return void

Fire() public method

public Fire ( ) : void
return void

HitBy() public method

public HitBy ( IProjectile projectile ) : void
projectile IProjectile
return void

Render() public method

public Render ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

ResetGuns() public method

public ResetGuns ( ) : void
return void

SetVelocity() public method

public SetVelocity ( Vector2 newVelocity ) : void
newVelocity Vector2
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
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

UpgradeGun() public method

public UpgradeGun ( System weaponType ) : void
weaponType System
return void

gameKey_moveDownPressed() public method

public gameKey_moveDownPressed ( Keys key ) : void
key Keys
return void

gameKey_moveDownReleased() public method

public gameKey_moveDownReleased ( Keys key ) : void
key Keys
return void

gameKey_moveLeftPressed() public method

public gameKey_moveLeftPressed ( Keys key ) : void
key Keys
return void

gameKey_moveLeftReleased() public method

public gameKey_moveLeftReleased ( Keys key ) : void
key Keys
return void

gameKey_moveRightPressed() public method

public gameKey_moveRightPressed ( Keys key ) : void
key Keys
return void

gameKey_moveRightReleased() public method

public gameKey_moveRightReleased ( Keys key ) : void
key Keys
return void

gameKey_moveUpPressed() public method

public gameKey_moveUpPressed ( Keys key ) : void
key Keys
return void

gameKey_moveUpReleased() public method

public gameKey_moveUpReleased ( Keys key ) : void
key Keys
return void

gameKey_shootPressed() public method

public gameKey_shootPressed ( Keys key ) : void
key Keys
return void