ddnet/src/game/teamscore.h

34 lines
557 B
C
Raw Normal View History

#ifndef GAME_TEAMSCORE_H
#define GAME_TEAMSCORE_H
#include <engine/shared/protocol.h>
2011-04-20 16:47:25 +00:00
enum
{
TEAM_FLOCK = 0,
TEAM_SUPER = 16
};
2011-04-20 16:47:25 +00:00
class CTeamsCore
{
int m_Team[MAX_CLIENTS];
bool m_IsSolo[MAX_CLIENTS];
public:
CTeamsCore(void);
bool SameTeam(int ClientID1, int ClientID2);
bool CanCollide(int ClientID1, int ClientID2);
int Team(int ClientID);
void Team(int ClientID, int Team);
2010-09-24 07:12:26 +00:00
void Reset();
void SetSolo(int ClientID, bool Value) { m_IsSolo[ClientID] = Value; };
bool GetSolo(int ClientID) { return m_IsSolo[ClientID]; };
};
2011-01-12 09:10:57 +00:00
#endif