C# 클래스 PGCGame.Ship

상속: Sprite, ITimerSprite
파일 보기 프로젝트 열기: GreatMindsRobotics/PGCGame 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BattleCruiserBullet Texture2D
DistanceToNose float
DroneBullet Texture2D
Explosion Texture2D
FighterCarrierBullet Texture2D
ShrinkCount int
SpaceMine Texture2D
Torpedo Texture2D
WorldSb Microsoft.Xna.Framework.Graphics.SpriteBatch
engine ParticleEngine
gen RandomParticleGenerator
particles Texture2D[]

보호된 프로퍼티들

프로퍼티 타입 설명
_explosionSheet Glib.XNA.SpriteLib.SpriteSheet
_hasHealthBar bool
_healthBar Glib.XNA.SpriteLib.ProgressBar
_initHealth int
_isDead bool
shipState ShipState

Private Properties

프로퍼티 타입 설명
Options_ScreenResolutionChanged void
Ship_Moved void

공개 메소드들

메소드 설명
DrawNonAuto ( ) : void
Equals ( object obj ) : bool
GetHashCode ( ) : int
IsAllyWith ( PlayerType pt ) : bool
Kill ( bool brutally ) : void
Ship ( Texture2D texture, Vector2 location, SpriteBatch spriteBatch ) : System
Shoot ( ) : void
Update ( GameTime gt ) : void
operator ( ) : bool

보호된 메소드들

메소드 설명
FireBulletEvent ( Bullet fired ) : void
UpdateWcPos ( ) : void

비공개 메소드들

메소드 설명
Options_ScreenResolutionChanged ( object sender, ViewportEventArgs e ) : void
Ship_Moved ( object sender, EventArgs e ) : void

메소드 상세

DrawNonAuto() 공개 메소드

public DrawNonAuto ( ) : void
리턴 void

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

FireBulletEvent() 보호된 메소드

protected FireBulletEvent ( Bullet fired ) : void
fired Bullet
리턴 void

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

IsAllyWith() 공개 메소드

public IsAllyWith ( PlayerType pt ) : bool
pt PlayerType
리턴 bool

Kill() 공개 메소드

public Kill ( bool brutally ) : void
brutally bool
리턴 void

Ship() 공개 메소드

public Ship ( Texture2D texture, Vector2 location, SpriteBatch spriteBatch ) : System
texture Texture2D
location Vector2
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
리턴 System

Shoot() 공개 메소드

public Shoot ( ) : void
리턴 void

Update() 공개 메소드

public Update ( GameTime gt ) : void
gt GameTime
리턴 void

UpdateWcPos() 보호된 메소드

protected UpdateWcPos ( ) : void
리턴 void

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool

프로퍼티 상세

BattleCruiserBullet 공개적으로 정적으로 프로퍼티

public static Texture2D BattleCruiserBullet
리턴 Texture2D

DistanceToNose 공개적으로 프로퍼티

The percentage of the total height of the ship that the nose is from the center.
public float DistanceToNose
리턴 float

DroneBullet 공개적으로 정적으로 프로퍼티

public static Texture2D DroneBullet
리턴 Texture2D

Explosion 공개적으로 정적으로 프로퍼티

public static Texture2D Explosion
리턴 Texture2D

FighterCarrierBullet 공개적으로 정적으로 프로퍼티

public static Texture2D FighterCarrierBullet
리턴 Texture2D

ShrinkCount 공개적으로 프로퍼티

public int ShrinkCount
리턴 int

SpaceMine 공개적으로 정적으로 프로퍼티

public static Texture2D SpaceMine
리턴 Texture2D

Torpedo 공개적으로 정적으로 프로퍼티

public static Texture2D Torpedo
리턴 Texture2D

WorldSb 공개적으로 프로퍼티

public SpriteBatch,Microsoft.Xna.Framework.Graphics WorldSb
리턴 Microsoft.Xna.Framework.Graphics.SpriteBatch

_explosionSheet 보호되어 있는 프로퍼티

protected SpriteSheet,Glib.XNA.SpriteLib _explosionSheet
리턴 Glib.XNA.SpriteLib.SpriteSheet

_hasHealthBar 보호되어 있는 프로퍼티

protected bool _hasHealthBar
리턴 bool

_healthBar 보호되어 있는 프로퍼티

protected ProgressBar,Glib.XNA.SpriteLib _healthBar
리턴 Glib.XNA.SpriteLib.ProgressBar

_initHealth 보호되어 있는 프로퍼티

protected int _initHealth
리턴 int

_isDead 보호되어 있는 프로퍼티

protected bool _isDead
리턴 bool

engine 공개적으로 프로퍼티

public ParticleEngine engine
리턴 ParticleEngine

gen 공개적으로 프로퍼티

public RandomParticleGenerator gen
리턴 RandomParticleGenerator

particles 공개적으로 프로퍼티

public Texture2D[] particles
리턴 Texture2D[]

shipState 보호되어 있는 프로퍼티

protected ShipState shipState
리턴 ShipState