Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros | Enumerations | Functions | Variables
teaminfo.hpp File Reference
#include "inexor/fpsgame/fpsent.hpp"
#include "inexor/shared/cube_vector.hpp"
#include "inexor/shared/cube_tools.hpp"
#include "inexor/shared/cube_loops.hpp"
#include "inexor/shared/cube_hash.hpp"
#include <string.h>

Go to the source code of this file.

Classes

struct  teamscore
 some team modes allow more than 2 teams allow sorting multiple teams using team scores More...
 
struct  teaminfo
 scoreboard team block description More...
 
struct  scoregroup
 Used only for the scoreboard. More...
 

Namespaces

 game
 implementation of basic game functionsand cubescript bindings
 

Macros

#define MAXTEAMS   128
 important teamspecific declarations More...
 
#define MAXNAMELEN   15
 
#define MAXTEAMLEN   4
 
#define MAXTAGLEN   8
 
#define BOTTAG   "Bot"
 
#define MAXNAMELEN   15
 
#define MAXTEAMLEN   4
 
#define MAXTEAMS   128
 important teamspecific declarations More...
 

Enumerations

enum  { TEAM_NONE, TEAM_OWN, TEAM_OPPONENT, TEAM_NUM }
 

Functions

static uint hthash (const teamscore &t)
 create hashes to access hashmaps More...
 
static bool htcmp (const char *key, const teamscore &t)
 compare two teamnames More...
 
static uint hthash (const teaminfo &t)
 create hash for hashsts More...
 
static bool htcmp (const char *team, const teaminfo &t)
 compare two team names More...
 
void game::clearteaminfo ()
 
void game::setteaminfo (const char *team, int frags)
 

Variables

static const char *const teamblipcolor [TEAM_NUM]
 const radar blip colors More...
 

Class Documentation

struct teaminfo

scoreboard team block description

Class Members
int frags
char team[MAXTEAMLEN+1]

Macro Definition Documentation

#define BOTTAG   "Bot"
#define MAXNAMELEN   15
#define MAXNAMELEN   15
#define MAXTAGLEN   8
#define MAXTEAMLEN   4
#define MAXTEAMLEN   4
#define MAXTEAMS   128

important teamspecific declarations

Referenced by server::addteaminfo(), and game::parsemessages().

#define MAXTEAMS   128

important teamspecific declarations

Enumeration Type Documentation

anonymous enum
Enumerator
TEAM_NONE 
TEAM_OWN 
TEAM_OPPONENT 
TEAM_NUM 

Function Documentation

static bool htcmp ( const char *  key,
const teamscore t 
)
inlinestatic

compare two teamnames

References teamscore::team.

static bool htcmp ( const char *  team,
const teaminfo t 
)
inlinestatic

compare two team names

References teaminfo::team.

static uint hthash ( const teamscore t)
inlinestatic

create hashes to access hashmaps

References teamscore::team.

Referenced by hthash().

static uint hthash ( const teaminfo t)
inlinestatic

create hash for hashsts

References hthash(), and teaminfo::team.

Variable Documentation

const char* const teamblipcolor[TEAM_NUM]
static
Initial value:
=
{
"_neutral",
"_blue",
"_red"
}

const radar blip colors

Referenced by game::setbliptex().