git-svn-id: https://openitg.svn.sourceforge.net/svnroot/openitg@378 83fadc84-e282...
authorPatrick McIlroy <itgpmc@gmail.com>
Thu, 12 Jun 2008 01:58:51 +0000 (01:58 +0000)
committerPatrick McIlroy <itgpmc@gmail.com>
Thu, 12 Jun 2008 01:58:51 +0000 (01:58 +0000)
src/PlayerNumber.cpp
src/PlayerNumber.h

index 5bd8bf9..eef4ee9 100755 (executable)
@@ -4,8 +4,15 @@
 #include "GameState.h"
 #include "CommonMetrics.h"
 #include "LuaManager.h"
+#include "EnumHelper.h"
 
 
+static const char *PlayerNumberNames[] = {
+        "P1",
+        "P2",
+};
+XToString( PlayerNumber, 2 );
+
 PlayerNumber GetNextHumanPlayer( PlayerNumber pn )
 {
        for( PlayerNumber p=(PlayerNumber)(pn+1); p<NUM_PLAYERS; p=(PlayerNumber)(p+1) )
index 8b9b752..a7b1b98 100755 (executable)
@@ -27,6 +27,8 @@ PlayerNumber GetNextEnabledPlayer( PlayerNumber pn );
 PlayerNumber GetNextCpuPlayer( PlayerNumber pn );
 PlayerNumber GetNextPotentialCpuPlayer( PlayerNumber pn );
 
+const CString& PlayerNumberToString( PlayerNumber pn );
+
 const PlayerNumber     OPPOSITE_PLAYER[NUM_PLAYERS] = { PLAYER_2, PLAYER_1 };
 
 #endif