C# 클래스 Shooter.Entities.Projectile

상속: Entity
파일 보기 프로젝트 열기: JoeyTheAsian/Just-Force 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
distTraveled double
isRifleRound bool
playerShot bool
range double
velocity double

공개 메소드들

메소드 설명
CheckHit ( Character e, Weapon w ) : bool
CheckRange ( ) : bool
Projectile ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
Projectile ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, double dir, double v, string t, bool c, Rectangle r, double rng, bool rifle, bool isPlayerShot ) : System
Projectile ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, string t, Rectangle r ) : System
UpdatePos ( double timeElapsed, int tileSize ) : void

메소드 상세

CheckHit() 공개 메소드

public CheckHit ( Character e, Weapon w ) : bool
e Character
w Shooter.Controls.Weapon
리턴 bool

CheckRange() 공개 메소드

public CheckRange ( ) : bool
리턴 bool

Projectile() 공개 메소드

public Projectile ( Microsoft.Xna.Framework.Content.ContentManager content ) : System
content Microsoft.Xna.Framework.Content.ContentManager
리턴 System

Projectile() 공개 메소드

public Projectile ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, double dir, double v, string t, bool c, Rectangle r, double rng, bool rifle, bool isPlayerShot ) : System
content Microsoft.Xna.Framework.Content.ContentManager
x double
y double
dir double
v double
t string
c bool
r Microsoft.Xna.Framework.Rectangle
rng double
rifle bool
isPlayerShot bool
리턴 System

Projectile() 공개 메소드

public Projectile ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, string t, Rectangle r ) : System
content Microsoft.Xna.Framework.Content.ContentManager
x double
y double
t string
r Microsoft.Xna.Framework.Rectangle
리턴 System

UpdatePos() 공개 메소드

public UpdatePos ( double timeElapsed, int tileSize ) : void
timeElapsed double
tileSize int
리턴 void

프로퍼티 상세

distTraveled 보호되어 있는 프로퍼티

protected double distTraveled
리턴 double

isRifleRound 보호되어 있는 프로퍼티

protected bool isRifleRound
리턴 bool

playerShot 보호되어 있는 프로퍼티

protected bool playerShot
리턴 bool

range 보호되어 있는 프로퍼티

protected double range
리턴 double

velocity 보호되어 있는 프로퍼티

protected double velocity
리턴 double