mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-17 07:51:06 +00:00
2cad1c2c19
automatically used by all inventory classes. - The previous change made it necessary to replace all TryPickup calls with another function that just calls TryPickup. - Fixed: AInventory::TryPickup can change the toucher so this must be reported to subclasses calling the super function. Changed TryPickup to pass the toucher pointer by reference. SVN r1221 (trunk)
36 lines
740 B
C++
36 lines
740 B
C++
#ifndef __A_HEXENGLOBAL_H__
|
|
#define __A_HEXENGLOBAL_H__
|
|
|
|
#include "d_player.h"
|
|
|
|
class AHolySpirit : public AActor
|
|
{
|
|
DECLARE_CLASS (AHolySpirit, AActor)
|
|
public:
|
|
bool Slam (AActor *thing);
|
|
bool SpecialBlastHandling (AActor *source, fixed_t strength);
|
|
bool IsOkayToAttack (AActor *link);
|
|
};
|
|
|
|
class AFighterWeapon : public AWeapon
|
|
{
|
|
DECLARE_CLASS (AFighterWeapon, AWeapon);
|
|
public:
|
|
bool TryPickup (AActor *&toucher);
|
|
};
|
|
|
|
class AClericWeapon : public AWeapon
|
|
{
|
|
DECLARE_CLASS (AClericWeapon, AWeapon);
|
|
public:
|
|
bool TryPickup (AActor *&toucher);
|
|
};
|
|
|
|
class AMageWeapon : public AWeapon
|
|
{
|
|
DECLARE_CLASS (AMageWeapon, AWeapon);
|
|
public:
|
|
bool TryPickup (AActor *&toucher);
|
|
};
|
|
|
|
#endif //__A_HEXENGLOBAL_H__
|