Superfighters Deluxe
HandgunWeaponItem Struct Reference

Access to certain information about the weapon item (secondary, handgun ranged item) More...

Public Member Functions

 HandgunWeaponItem (WeaponItem weaponItem, int currentAmmo, int spareMags, int magSize)
 
 HandgunWeaponItem (WeaponItem weaponItem, int currentAmmo, int spareMags, int magSize, int maxCarriedSpareMags, int weaponMagCapacity, int maxTotalAmmo, ProjectileItem projectileItem, int powerupBouncingRounds, int powerupFireRounds, bool lazerEquipped=false)
 

Public Attributes

int CurrentAmmo
 Returns the current ammo left before reload is required. More...
 
bool LazerEquipped
 Returns if the lazer powerup is equipped to this weapon. More...
 
int MagSize
 Returns the ammo contained in each spare mag. More...
 
int MaxCarriedSpareMags
 Returns max possible carried spare mags for this weapon. More...
 
int MaxTotalAmmo
 Returns max possible total ammo for this weapon. More...
 
int PowerupBouncingRounds
 Returns current powerup bouncing rounds. More...
 
int PowerupFireRounds
 Returns current powerup fire rounds. More...
 
ProjectileItem ProjectileItem
 Returns the projectile item for this weapon. More...
 
int SpareMags
 Returns number of spare mags left. More...
 
int TotalAmmo
 Returns the total ammo left (CurrentAmmo + SpareMags * MagSize) More...
 
WeaponItem WeaponItem
 Returns the WeaponItem. More...
 
WeaponItemType WeaponItemType
 Returns the type of weapon. More...
 
int WeaponMagCapacity
 Returns the capacity of mags the weapon can contain. A special property for shotguns only as a shotgun pellet counts as a "mag" and this property determines how many shells a shotgun can contain. More...
 

Detailed Description

Access to certain information about the weapon item (secondary, handgun ranged item)

Constructor & Destructor Documentation

◆ HandgunWeaponItem() [1/2]

HandgunWeaponItem ( WeaponItem  weaponItem,
int  currentAmmo,
int  spareMags,
int  magSize 
)

Parameters
weaponItem
currentAmmo
spareMags
magSize
maxCarriedSpareMags
maxTotalAmmo

◆ HandgunWeaponItem() [2/2]

HandgunWeaponItem ( WeaponItem  weaponItem,
int  currentAmmo,
int  spareMags,
int  magSize,
int  maxCarriedSpareMags,
int  weaponMagCapacity,
int  maxTotalAmmo,
ProjectileItem  projectileItem,
int  powerupBouncingRounds,
int  powerupFireRounds,
bool  lazerEquipped = false 
)

Parameters
weaponItem
currentAmmo
spareMags
magSize
maxCarriedSpareMags
maxTotalAmmo

Member Data Documentation

◆ CurrentAmmo

int CurrentAmmo

Returns the current ammo left before reload is required.

◆ LazerEquipped

bool LazerEquipped

Returns if the lazer powerup is equipped to this weapon.

◆ MagSize

int MagSize

Returns the ammo contained in each spare mag.

◆ MaxCarriedSpareMags

int MaxCarriedSpareMags

Returns max possible carried spare mags for this weapon.

◆ MaxTotalAmmo

int MaxTotalAmmo

Returns max possible total ammo for this weapon.

◆ PowerupBouncingRounds

int PowerupBouncingRounds

Returns current powerup bouncing rounds.

◆ PowerupFireRounds

int PowerupFireRounds

Returns current powerup fire rounds.

◆ ProjectileItem

Returns the projectile item for this weapon.

◆ SpareMags

int SpareMags

Returns number of spare mags left.

◆ TotalAmmo

int TotalAmmo

Returns the total ammo left (CurrentAmmo + SpareMags * MagSize)

◆ WeaponItem

Returns the WeaponItem.

◆ WeaponItemType

Returns the type of weapon.

◆ WeaponMagCapacity

int WeaponMagCapacity

Returns the capacity of mags the weapon can contain. A special property for shotguns only as a shotgun pellet counts as a "mag" and this property determines how many shells a shotgun can contain.