Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

player.cpp File Reference

#include <algorithm>
#include <ctime>
#include <cmath>
#include "global.h"
#include "misc.h"
#include "typen.h"
#include "vehicletype.h"
#include "buildingtype.h"
#include "player.h"
#include "gamemap.h"
#include "cannedmessages.h"

Include dependency graph for player.cpp:

Go to the source code of this file.

Functions

template<typename T>
void swapData (T &t1, T &t2)

Variables

const char * diplomaticStateNames [diplomaticStateNum+1]
const int playerVersion = 2


Function Documentation

template<typename T>
void swapData T &  t1,
T &  t2
 

Definition at line 446 of file player.cpp.

References T.

Referenced by DiplomaticStateVector::swap(), and Player::swap().


Variable Documentation

const char* diplomaticStateNames[diplomaticStateNum+1]
 

Initial value:

 
{
   "War",
   "Truce",
   "Peace",
   "Association",
   "Alliance",
   NULL
}

Definition at line 40 of file player.cpp.

Referenced by getItemNum< AllianceSetupWidget::DiplomaticTransitions >(), and DiplomaticStateVector::propose().

const int playerVersion = 2
 

Definition at line 423 of file player.cpp.


Generated on Tue Jun 24 02:04:44 2008 for Advanced Strategic Command by  doxygen 1.4.2