2023-10-31 21:31:16 +08:00
|
|
|
|
2024-01-05 23:34:53 +08:00
|
|
|
#pragma once
|
|
|
|
|
2023-10-31 21:31:16 +08:00
|
|
|
class CPlayerPool // size: 41035
|
|
|
|
{
|
|
|
|
private:
|
2024-03-14 23:24:26 +08:00
|
|
|
BOOL m_bPlayerSlotState[MAX_PLAYERS];
|
2024-06-03 22:51:04 +08:00
|
|
|
PLAYERID m_LocalPlayerID;
|
2024-01-05 23:34:53 +08:00
|
|
|
CHAR m_szLocalPlayerName[MAX_PLAYER_NAME+1];
|
2024-06-03 22:51:04 +08:00
|
|
|
CHAR m_szPlayerNames[MAX_PLAYERS][MAX_PLAYER_NAME+1];
|
2023-10-31 21:31:16 +08:00
|
|
|
int field_7163;
|
|
|
|
int field_7167[1000];
|
|
|
|
int field_8107;
|
|
|
|
int field_810B[1000];
|
|
|
|
char gap90AB[4000];
|
|
|
|
|
|
|
|
public:
|
2024-06-01 18:30:44 +08:00
|
|
|
// Process All CPlayers
|
|
|
|
BOOL Process();
|
2023-11-18 00:00:52 +08:00
|
|
|
|
2024-01-05 23:34:53 +08:00
|
|
|
void SetLocalPlayerName(PCHAR szName) { strcpy(m_szLocalPlayerName,szName); };
|
2023-11-18 00:00:52 +08:00
|
|
|
|
2023-10-31 21:31:16 +08:00
|
|
|
CPlayerPool();
|
2024-03-14 23:24:26 +08:00
|
|
|
~CPlayerPool();
|
|
|
|
|
|
|
|
BOOL Delete(PLAYERID playerId, BYTE byteReason);
|
|
|
|
|
2024-06-01 18:40:37 +08:00
|
|
|
// Find out if the slot is inuse.
|
|
|
|
BOOL GetSlotState(PLAYERID playerId) {
|
|
|
|
if(playerId >= MAX_PLAYERS) { return FALSE; }
|
|
|
|
return m_bPlayerSlotState[playerId];
|
|
|
|
};
|
|
|
|
|
2024-06-03 22:51:04 +08:00
|
|
|
void SetLocalPlayerID(PLAYERID MyPlayerID) {
|
|
|
|
strcpy(m_szPlayerNames[MyPlayerID],m_szLocalPlayerName);
|
|
|
|
m_LocalPlayerID = MyPlayerID;
|
|
|
|
};
|
2023-10-31 21:31:16 +08:00
|
|
|
};
|