mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-12 15:44:10 +00:00
ae54e13428
- Removed AT_GAME_SET because it's no longer used anywhere. - Converted the last remaining global classes to DECORATE. - Fixed: Inventory.PickupFlash requires an class name as parameter not an integer. Some Hexen definitions got it wrong. - Converted Hexen's Pig to DECORATE. - Replaced the ActorInfo definitions of all internal inventory classes with DECORATE definitions. - Added option to specify a powerup's duration in second by using a negative number. SVN r1137 (trunk)
24 lines
471 B
C++
24 lines
471 B
C++
#ifndef A_KEYS_H
|
|
#define A_KEYS_H
|
|
|
|
#include "a_pickups.h"
|
|
|
|
class AKey : public AInventory
|
|
{
|
|
DECLARE_CLASS (AKey, AInventory)
|
|
public:
|
|
virtual bool HandlePickup (AInventory *item);
|
|
|
|
BYTE KeyNumber;
|
|
|
|
protected:
|
|
virtual bool ShouldStay ();
|
|
};
|
|
|
|
bool P_CheckKeys (AActor *owner, int keynum, bool remote);
|
|
void P_InitKeyMessages ();
|
|
void P_DeinitKeyMessages ();
|
|
int P_GetMapColorForLock (int lock);
|
|
int P_GetMapColorForKey (AInventory *key);
|
|
|
|
#endif
|