2006-02-24 04:48:15 +00:00
|
|
|
#ifndef A_KEYS_H
|
|
|
|
#define A_KEYS_H
|
|
|
|
|
|
|
|
#include "a_pickups.h"
|
|
|
|
|
|
|
|
class AKey : public AInventory
|
|
|
|
{
|
2008-08-09 11:35:42 +00:00
|
|
|
DECLARE_CLASS (AKey, AInventory)
|
2006-02-24 04:48:15 +00:00
|
|
|
public:
|
|
|
|
virtual bool HandlePickup (AInventory *item);
|
|
|
|
|
|
|
|
BYTE KeyNumber;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual bool ShouldStay ();
|
|
|
|
};
|
|
|
|
|
|
|
|
bool P_CheckKeys (AActor *owner, int keynum, bool remote);
|
|
|
|
void P_InitKeyMessages ();
|
2006-05-12 03:14:40 +00:00
|
|
|
void P_DeinitKeyMessages ();
|
2006-02-24 04:48:15 +00:00
|
|
|
int P_GetMapColorForLock (int lock);
|
|
|
|
int P_GetMapColorForKey (AInventory *key);
|
|
|
|
|
|
|
|
#endif
|