C# Class Shooter.Controls.Weapon

Afficher le fichier Open project: JoeyTheAsian/Just-Force Class Usage Examples

Méthodes publiques

Свойство Type Description
isReloading bool
maxAmmo int
reloadTimer double
timeSinceLastShot double

Protected Properties

Свойство Type Description
ammo List
ammoCount int
ammoTexture Microsoft.Xna.Framework.Graphics.Texture2D
auto bool
damage int
fireRate double
isAcquired bool
level int
name string
range double
reload Microsoft.Xna.Framework.Audio.SoundEffect
reloadTime double
shoot Microsoft.Xna.Framework.Audio.SoundEffect
spread double
texture Microsoft.Xna.Framework.Graphics.Texture2D

Méthodes publiques

Méthode Description
CheckAmmo ( ) : bool
CheckFireRate ( double timeElapsed ) : bool
FillAmmo ( ) : void
GetSpread ( ) : double
Reload ( Queue curSounds ) : void
Reloading ( double timeElapsed ) : bool
Shoot ( Microsoft.Xna.Framework.Content.ContentManager content, Character p, Camera c, int tileSize, Character e ) : Projectile
TotalAmmo ( ) : int
Weapon ( Microsoft.Xna.Framework.Content.ContentManager content ) : Microsoft.Xna.Framework
Weapon ( Microsoft.Xna.Framework.Content.ContentManager content, List a, bool au, double spr, int fr, string t, int d ) : Microsoft.Xna.Framework
Weapon ( Microsoft.Xna.Framework.Content.ContentManager content, bool au, double spr, int fr, string t, int d, string ammoT, string n, int maxAm, int ammoC, double rlTime, int rng, int lvl, bool acq ) : Microsoft.Xna.Framework
Weapon ( Microsoft.Xna.Framework.Content.ContentManager content, bool au, double spr, int fr, string t, int d, string ammoT, string n, int maxAm, int ammoC, double rlTime, int rng, int lvl, bool acq, SoundEffect shot, SoundEffect rl ) : Microsoft.Xna.Framework

Method Details

CheckAmmo() public méthode

public CheckAmmo ( ) : bool
Résultat bool

CheckFireRate() public méthode

public CheckFireRate ( double timeElapsed ) : bool
timeElapsed double
Résultat bool

FillAmmo() public méthode

public FillAmmo ( ) : void
Résultat void

GetSpread() public méthode

public GetSpread ( ) : double
Résultat double

Reload() public méthode

public Reload ( Queue curSounds ) : void
curSounds Queue
Résultat void

Reloading() public méthode

public Reloading ( double timeElapsed ) : bool
timeElapsed double
Résultat bool

Shoot() public méthode

public Shoot ( Microsoft.Xna.Framework.Content.ContentManager content, Character p, Camera c, int tileSize, Character e ) : Projectile
content Microsoft.Xna.Framework.Content.ContentManager
p Shooter.Entities.Character
c Camera
tileSize int
e Shooter.Entities.Character
Résultat Shooter.Entities.Projectile

TotalAmmo() public méthode

public TotalAmmo ( ) : int
Résultat int

Weapon() public méthode

public Weapon ( Microsoft.Xna.Framework.Content.ContentManager content ) : Microsoft.Xna.Framework
content Microsoft.Xna.Framework.Content.ContentManager
Résultat Microsoft.Xna.Framework

Weapon() public méthode

public Weapon ( Microsoft.Xna.Framework.Content.ContentManager content, List a, bool au, double spr, int fr, string t, int d ) : Microsoft.Xna.Framework
content Microsoft.Xna.Framework.Content.ContentManager
a List
au bool
spr double
fr int
t string
d int
Résultat Microsoft.Xna.Framework

Weapon() public méthode

public Weapon ( Microsoft.Xna.Framework.Content.ContentManager content, bool au, double spr, int fr, string t, int d, string ammoT, string n, int maxAm, int ammoC, double rlTime, int rng, int lvl, bool acq ) : Microsoft.Xna.Framework
content Microsoft.Xna.Framework.Content.ContentManager
au bool
spr double
fr int
t string
d int
ammoT string
n string
maxAm int
ammoC int
rlTime double
rng int
lvl int
acq bool
Résultat Microsoft.Xna.Framework

Weapon() public méthode

public Weapon ( Microsoft.Xna.Framework.Content.ContentManager content, bool au, double spr, int fr, string t, int d, string ammoT, string n, int maxAm, int ammoC, double rlTime, int rng, int lvl, bool acq, SoundEffect shot, SoundEffect rl ) : Microsoft.Xna.Framework
content Microsoft.Xna.Framework.Content.ContentManager
au bool
spr double
fr int
t string
d int
ammoT string
n string
maxAm int
ammoC int
rlTime double
rng int
lvl int
acq bool
shot Microsoft.Xna.Framework.Audio.SoundEffect
rl Microsoft.Xna.Framework.Audio.SoundEffect
Résultat Microsoft.Xna.Framework

Property Details

ammo protected_oe property

protected List ammo
Résultat List

ammoCount protected_oe property

protected int ammoCount
Résultat int

ammoTexture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics ammoTexture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

auto protected_oe property

protected bool auto
Résultat bool

damage protected_oe property

protected int damage
Résultat int

fireRate protected_oe property

protected double fireRate
Résultat double

isAcquired protected_oe property

protected bool isAcquired
Résultat bool

isReloading public_oe property

public bool isReloading
Résultat bool

level protected_oe property

protected int level
Résultat int

maxAmmo public_oe property

public int maxAmmo
Résultat int

name protected_oe property

protected string name
Résultat string

range protected_oe property

protected double range
Résultat double

reload protected_oe property

protected SoundEffect,Microsoft.Xna.Framework.Audio reload
Résultat Microsoft.Xna.Framework.Audio.SoundEffect

reloadTime protected_oe property

protected double reloadTime
Résultat double

reloadTimer public_oe property

public double reloadTimer
Résultat double

shoot protected_oe property

protected SoundEffect,Microsoft.Xna.Framework.Audio shoot
Résultat Microsoft.Xna.Framework.Audio.SoundEffect

spread protected_oe property

protected double spread
Résultat double

texture protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics texture
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

timeSinceLastShot public_oe property

public double timeSinceLastShot
Résultat double