C# 클래스 Manic_Shooter.Classes.DefaultPlayer

상속: Sprite, IPlayer, ISprite
파일 보기 프로젝트 열기: TheGameDevelopmentClub/Manic-Shooter 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
DebugFlash ( ) : void
EnableKeyboardEvents ( bool enabled ) : void
ResetVelocityOnRevive ( ) : void

메소드 상세

AddScore() 공개 메소드

public AddScore ( int additionalPoints ) : void
additionalPoints int
리턴 void

AddVelocity() 공개 메소드

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

ClearScore() 공개 메소드

public ClearScore ( ) : void
리턴 void

DefaultPlayer() 공개 메소드

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

Destroy() 공개 메소드

public Destroy ( ) : void
리턴 void

Fire() 공개 메소드

public Fire ( ) : void
리턴 void

HitBy() 공개 메소드

public HitBy ( IProjectile projectile ) : void
projectile IProjectile
리턴 void

Render() 공개 메소드

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

ResetGuns() 공개 메소드

public ResetGuns ( ) : void
리턴 void

SetVelocity() 공개 메소드

public SetVelocity ( Vector2 newVelocity ) : void
newVelocity Vector2
리턴 void

Update() 공개 메소드

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

UpdateWeaponPositions() 공개 메소드

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
리턴 void

UpgradeGun() 공개 메소드

public UpgradeGun ( System weaponType ) : void
weaponType System
리턴 void

gameKey_moveDownPressed() 공개 메소드

public gameKey_moveDownPressed ( Keys key ) : void
key Keys
리턴 void

gameKey_moveDownReleased() 공개 메소드

public gameKey_moveDownReleased ( Keys key ) : void
key Keys
리턴 void

gameKey_moveLeftPressed() 공개 메소드

public gameKey_moveLeftPressed ( Keys key ) : void
key Keys
리턴 void

gameKey_moveLeftReleased() 공개 메소드

public gameKey_moveLeftReleased ( Keys key ) : void
key Keys
리턴 void

gameKey_moveRightPressed() 공개 메소드

public gameKey_moveRightPressed ( Keys key ) : void
key Keys
리턴 void

gameKey_moveRightReleased() 공개 메소드

public gameKey_moveRightReleased ( Keys key ) : void
key Keys
리턴 void

gameKey_moveUpPressed() 공개 메소드

public gameKey_moveUpPressed ( Keys key ) : void
key Keys
리턴 void

gameKey_moveUpReleased() 공개 메소드

public gameKey_moveUpReleased ( Keys key ) : void
key Keys
리턴 void

gameKey_shootPressed() 공개 메소드

public gameKey_shootPressed ( Keys key ) : void
key Keys
리턴 void