src/team/macro.h File Reference

#include "teams_list.h"

Include dependency graph for macro.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define FOR_EACH_TEAM(equipe)
#define FOR_EACH_CHARACTER(equipe, ver)
#define FOR_EACH_LIVING_CHARACTER(equipe, ver)
#define FOR_ALL_CHARACTERS(equipe, ver)
#define FOR_ALL_LIVING_CHARACTERS(equipe, ver)
#define FOR_ALL_LIVING_ENEMIES(equipe, ver)


Define Documentation

#define FOR_ALL_CHARACTERS ( equipe,
ver   ) 

Value:

FOR_EACH_TEAM(equipe) \
  FOR_EACH_CHARACTER(*equipe,ver)

Definition at line 52 of file macro.h.

#define FOR_ALL_LIVING_CHARACTERS ( equipe,
ver   ) 

Value:

Definition at line 57 of file macro.h.

#define FOR_ALL_LIVING_ENEMIES ( equipe,
ver   ) 

Value:

FOR_EACH_TEAM(equipe) \
  if (!(*equipe)->IsSameAs(ActiveTeam())) \
  FOR_EACH_LIVING_CHARACTER(*equipe,ver)

Definition at line 61 of file macro.h.

#define FOR_EACH_CHARACTER ( equipe,
ver   ) 

Value:

for (Team::iterator ver = (*(equipe)).begin(), \
       fin_pour_chaque_ver = (*(equipe)).end(); \
       ver != fin_pour_chaque_ver; \
       ++ver) \
  if (!ver -> IsGhost())

Definition at line 36 of file macro.h.

#define FOR_EACH_LIVING_CHARACTER ( equipe,
ver   ) 

Value:

for (Team::iterator ver = (*(equipe)).begin(), \
       fin_pour_chaque_ver_vivant = (*(equipe)).end(); \
       ver != fin_pour_chaque_ver_vivant; \
       ++ver) \
  if (!ver -> IsDead())

Definition at line 44 of file macro.h.

#define FOR_EACH_TEAM ( equipe   ) 

Value:

for (TeamsList::iterator equipe=teams_list.playing_list.begin(), \
       fin_pour_chaque_equipe=teams_list.playing_list.end(); \
       equipe != fin_pour_chaque_equipe; \
       ++equipe)

Definition at line 29 of file macro.h.


Generated on Mon Jan 1 13:24:03 2007 for Wormux by  doxygen 1.4.7