2010-08-30 12:13:43 +00:00
|
|
|
#ifndef GAME_TEAMSCORE_H
|
|
|
|
#define GAME_TEAMSCORE_H
|
|
|
|
|
|
|
|
#include <engine/shared/protocol.h>
|
|
|
|
|
2010-09-14 18:28:50 +00:00
|
|
|
enum {
|
|
|
|
TEAM_FLOCK = 0,
|
|
|
|
TEAM_SUPER = 16
|
|
|
|
};
|
|
|
|
|
2010-08-30 12:13:43 +00:00
|
|
|
class CTeamsCore {
|
|
|
|
|
|
|
|
int m_Team[MAX_CLIENTS];
|
|
|
|
public:
|
|
|
|
|
|
|
|
CTeamsCore(void);
|
|
|
|
|
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);
|
2010-08-30 12:13:43 +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();
|
2010-08-30 12:13:43 +00:00
|
|
|
};
|
|
|
|
|
2011-01-12 09:10:57 +00:00
|
|
|
#endif
|