mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-20 11:11:34 +00:00
3c47a30249
SVN r3296 (trunk)
32 lines
825 B
C++
32 lines
825 B
C++
|
|
class AWeaponPiece : public AInventory
|
|
{
|
|
DECLARE_CLASS (AWeaponPiece, AInventory)
|
|
HAS_OBJECT_POINTERS
|
|
protected:
|
|
bool PrivateShouldStay ();
|
|
public:
|
|
void Serialize (FArchive &arc);
|
|
bool TryPickup (AActor *&toucher);
|
|
bool TryPickupRestricted (AActor *&toucher);
|
|
bool ShouldStay ();
|
|
virtual const char *PickupMessage ();
|
|
virtual void PlayPickupSound (AActor *toucher);
|
|
|
|
int PieceValue;
|
|
const PClass * WeaponClass;
|
|
TObjPtr<AWeapon> FullWeapon;
|
|
};
|
|
|
|
// an internal class to hold the information for player class independent weapon piece handling
|
|
// [BL] Needs to be available for SBarInfo to check weaponpieces
|
|
class AWeaponHolder : public AInventory
|
|
{
|
|
DECLARE_CLASS(AWeaponHolder, AInventory)
|
|
|
|
public:
|
|
int PieceMask;
|
|
const PClass * PieceWeapon;
|
|
|
|
void Serialize (FArchive &arc);
|
|
};
|