2011-12-25 13:33:05 +00:00
|
|
|
/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
|
2010-08-30 12:13:43 +00:00
|
|
|
#ifndef GAME_TEAMSCORE_H
|
|
|
|
#define GAME_TEAMSCORE_H
|
|
|
|
|
|
|
|
#include <engine/shared/protocol.h>
|
|
|
|
|
2011-04-20 16:47:25 +00:00
|
|
|
enum
|
|
|
|
{
|
2014-01-21 17:21:01 +00:00
|
|
|
TEAM_FLOCK = 0, TEAM_SUPER = MAX_CLIENTS, VANILLA_TEAM_SUPER = VANILLA_MAX_CLIENTS
|
2010-09-14 18:28:50 +00:00
|
|
|
};
|
|
|
|
|
2011-04-20 16:47:25 +00:00
|
|
|
class CTeamsCore
|
|
|
|
{
|
2011-09-02 18:04:18 +00:00
|
|
|
|
2010-08-30 12:13:43 +00:00
|
|
|
int m_Team[MAX_CLIENTS];
|
2011-09-02 18:04:18 +00:00
|
|
|
bool m_IsSolo[MAX_CLIENTS];
|
2010-08-30 12:13:43 +00:00
|
|
|
public:
|
2014-01-21 17:21:01 +00:00
|
|
|
bool m_IsDDRace16;
|
2014-08-09 17:17:21 +00:00
|
|
|
bool m_IsDDRace64;
|
2011-12-25 13:51:04 +00:00
|
|
|
|
2010-08-30 12:13:43 +00:00
|
|
|
CTeamsCore(void);
|
2011-12-25 13:51:04 +00:00
|
|
|
|
2011-02-13 05:35:13 +00:00
|
|
|
bool SameTeam(int ClientID1, int ClientID2);
|
2010-09-21 19:09:11 +00:00
|
|
|
|
2011-02-13 05:35:13 +00:00
|
|
|
bool CanCollide(int ClientID1, int ClientID2);
|
2011-12-25 13:51:04 +00:00
|
|
|
|
2011-02-13 05:35:13 +00:00
|
|
|
int Team(int ClientID);
|
|
|
|
void Team(int ClientID, int Team);
|
2010-09-24 07:12:26 +00:00
|
|
|
|
|
|
|
void Reset();
|
2011-12-25 13:51:04 +00:00
|
|
|
void SetSolo(int ClientID, bool Value)
|
|
|
|
{
|
|
|
|
m_IsSolo[ClientID] = Value;
|
|
|
|
}
|
|
|
|
;
|
|
|
|
bool GetSolo(int ClientID)
|
|
|
|
{
|
|
|
|
return m_IsSolo[ClientID];
|
|
|
|
}
|
|
|
|
;
|
2010-08-30 12:13:43 +00:00
|
|
|
};
|
|
|
|
|
2011-01-12 09:10:57 +00:00
|
|
|
#endif
|