mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 02:28:18 +00:00
28 lines
365 B
C++
28 lines
365 B
C++
#ifndef GAME_TEAMSCORE_H
|
|
#define GAME_TEAMSCORE_H
|
|
|
|
#include <engine/shared/protocol.h>
|
|
|
|
enum {
|
|
TEAM_FLOCK = 0,
|
|
TEAM_SUPER = 16
|
|
};
|
|
|
|
class CTeamsCore {
|
|
|
|
int m_Team[MAX_CLIENTS];
|
|
public:
|
|
|
|
CTeamsCore(void);
|
|
|
|
bool SameTeam(int Cid1, int Cid2);
|
|
|
|
bool CanCollide(int Cid1, int Cid2);
|
|
|
|
int Team(int Cid);
|
|
void Team(int Cid, int Team);
|
|
|
|
void Reset();
|
|
};
|
|
|
|
#endif |