2023-10-29 22:26:43 +08:00
|
|
|
|
|
|
|
#ifndef SAMPSRV_GANGZONEPOOL_H
|
|
|
|
#define SAMPSRV_GANGZONEPOOL_H
|
|
|
|
|
2024-09-21 21:56:34 +08:00
|
|
|
//----------------------------------------------------
|
|
|
|
|
|
|
|
class CGangZonePool
|
2023-10-29 22:26:43 +08:00
|
|
|
{
|
|
|
|
private:
|
2024-09-21 21:56:34 +08:00
|
|
|
float m_fGangZone[MAX_GANG_ZONES][4];
|
|
|
|
BOOL m_bSlotState[MAX_GANG_ZONES];
|
2023-11-24 23:35:01 +08:00
|
|
|
public:
|
|
|
|
CGangZonePool();
|
|
|
|
~CGangZonePool() {};
|
2024-09-21 21:56:34 +08:00
|
|
|
WORD New(float fMinX, float fMinY, float fMaxX, float fMaxY);
|
2024-09-21 22:00:57 +08:00
|
|
|
void Delete(WORD wZone);
|
2024-09-21 22:22:06 +08:00
|
|
|
void ShowForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor);
|
2024-09-21 22:22:45 +08:00
|
|
|
void ShowForAll(WORD wZone, DWORD dwColor);
|
2024-09-21 22:23:09 +08:00
|
|
|
void HideForPlayer(PLAYERID playerId, WORD wZone);
|
2024-09-21 22:23:33 +08:00
|
|
|
void HideForAll(WORD wZone);
|
2024-09-21 22:23:53 +08:00
|
|
|
void FlashForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor);
|
2024-09-21 22:24:16 +08:00
|
|
|
void FlashForAll(WORD wZone, DWORD dwColor);
|
2024-09-21 22:24:44 +08:00
|
|
|
void StopFlashForPlayer(PLAYERID playerId, WORD wZone);
|
2024-09-21 22:25:08 +08:00
|
|
|
void StopFlashForAll(WORD wZone);
|
2024-09-21 22:33:41 +08:00
|
|
|
BOOL GetSlotState(WORD wZone)
|
|
|
|
{
|
|
|
|
if (wZone >= MAX_GANG_ZONES) return FALSE;
|
|
|
|
return m_bSlotState[wZone];
|
|
|
|
};
|
2023-10-29 22:26:43 +08:00
|
|
|
};
|
|
|
|
|
2024-09-21 21:56:34 +08:00
|
|
|
//----------------------------------------------------
|
|
|
|
|
2023-10-29 22:26:43 +08:00
|
|
|
#endif
|