SA-MP/server/gangzonepool.h

35 lines
947 B
C
Raw Permalink Normal View History

2023-10-29 22:26:43 +08:00
#ifndef SAMPSRV_GANGZONEPOOL_H
#define SAMPSRV_GANGZONEPOOL_H
//----------------------------------------------------
class CGangZonePool
2023-10-29 22:26:43 +08:00
{
private:
float m_fGangZone[MAX_GANG_ZONES][4];
BOOL m_bSlotState[MAX_GANG_ZONES];
public:
CGangZonePool();
~CGangZonePool() {};
WORD New(float fMinX, float fMinY, float fMaxX, float fMaxY);
void Delete(WORD wZone);
void ShowForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor);
void ShowForAll(WORD wZone, DWORD dwColor);
void HideForPlayer(PLAYERID playerId, WORD wZone);
void HideForAll(WORD wZone);
void FlashForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor);
void FlashForAll(WORD wZone, DWORD dwColor);
void StopFlashForPlayer(PLAYERID playerId, WORD wZone);
void StopFlashForAll(WORD wZone);
BOOL GetSlotState(WORD wZone)
{
if (wZone >= MAX_GANG_ZONES) return FALSE;
return m_bSlotState[wZone];
};
2023-10-29 22:26:43 +08:00
};
//----------------------------------------------------
2023-10-29 22:26:43 +08:00
#endif