g_round.c File Reference

#include "g_local.h"
Include dependency graph for g_round.c:

Go to the source code of this file.

Functions

void G_CheckForceEndRound (void)
 Check whether a forced round end should be executed.
static int G_PlayerSoldiersCount (const player_t *player)
 Counts the still living actors for a player.
static void G_UpdateStunState (int team)
 Regenerate the "STUN" value of each (partly) stunned team member.
static void G_GetNextActiveTeam (void)
 Get the next active team.
void G_ClientEndRound (player_t *player)

Detailed Description

Definition in file g_round.c.


Function Documentation

void G_CheckForceEndRound ( void   ) 
void G_ClientEndRound ( player_t player  ) 
static void G_GetNextActiveTeam ( void   )  [static]

Get the next active team.

Definition at line 124 of file g_round.c.

References level_locals_t::activeTeam, G_GetActiveTeam(), i, level, MAX_TEAMS, level_locals_t::num_alive, and TEAM_NO_ACTIVE.

Referenced by G_ClientEndRound().

static int G_PlayerSoldiersCount ( const player_t player  )  [static]

Counts the still living actors for a player.

Definition at line 83 of file g_round.c.

References G_EdictsGetNextLivingActor(), player_s::num, and edict_s::pnum.

Referenced by G_ClientEndRound().

static void G_UpdateStunState ( int  team  )  [static]

Regenerate the "STUN" value of each (partly) stunned team member.

Note:
The values are not sent via network. This is done in G_GiveTimeUnits. It has to be called afterwards.
Parameters:
[in] team The index of the team to update the values for.
See also:
G_GiveTimeUnits
Todo:
Make this depend on the character-attributes. http://lists.cifrid.net/pipermail/ufoai/2008-February/000346.html

Definition at line 104 of file g_round.c.

References G_ActorCheckRevitalise(), G_EdictsGetNextLivingActorOfTeam(), and edict_s::STUN.

Referenced by G_ClientEndRound().


Generated by  doxygen 1.6.2