Property | Type | Description | |
---|---|---|---|
isReloading | bool | ||
maxAmmo | int | ||
reloadTimer | double | ||
timeSinceLastShot | double |
Property | 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 | |||
reloadTime | double | ||
shoot | |||
spread | double | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D |
Method | Description | |
---|---|---|
CheckAmmo ( ) : bool | ||
CheckFireRate ( double timeElapsed ) : bool | ||
FillAmmo ( ) : void | ||
GetSpread ( ) : double | ||
Reload ( Queue |
||
Reloading ( double timeElapsed ) : bool | ||
Shoot ( Microsoft.Xna.Framework.Content.ContentManager content, |
||
TotalAmmo ( ) : int | ||
Weapon ( Microsoft.Xna.Framework.Content.ContentManager content ) : Microsoft.Xna.Framework | ||
Weapon ( Microsoft.Xna.Framework.Content.ContentManager content, List |
||
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, |
public CheckFireRate ( double timeElapsed ) : bool | ||
timeElapsed | double | |
return | bool |
public Reloading ( double timeElapsed ) : bool | ||
timeElapsed | double | |
return | bool |
public Shoot ( Microsoft.Xna.Framework.Content.ContentManager content, |
||
content | Microsoft.Xna.Framework.Content.ContentManager | |
p | ||
c | ||
tileSize | int | |
e | ||
return |
public Weapon ( Microsoft.Xna.Framework.Content.ContentManager content ) : Microsoft.Xna.Framework | ||
content | Microsoft.Xna.Framework.Content.ContentManager | |
return | Microsoft.Xna.Framework |
public Weapon ( Microsoft.Xna.Framework.Content.ContentManager content, List |
||
content | Microsoft.Xna.Framework.Content.ContentManager | |
a | List |
|
au | bool | |
spr | double | |
fr | int | |
t | string | |
d | int | |
return | Microsoft.Xna.Framework |
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 | |
return | Microsoft.Xna.Framework |
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, |
||
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 | ||
rl | ||
return | Microsoft.Xna.Framework |
protected Texture2D,Microsoft.Xna.Framework.Graphics ammoTexture | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |
protected SoundEffect,Microsoft.Xna.Framework.Audio reload | ||
return |
protected SoundEffect,Microsoft.Xna.Framework.Audio shoot | ||
return |
protected Texture2D,Microsoft.Xna.Framework.Graphics texture | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |