/[enigma]/enigma/src/player.hh
ViewVC logotype

Diff of /enigma/src/player.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by reallysoft, Fri May 30 08:01:31 2003 UTC revision 1.10 by reallysoft, Wed Jun 4 13:02:58 2003 UTC
# Line 54  namespace player Line 54  namespace player
54      };      };
55    
56      // Start a new game for N players.  Every player begins with two      // Start a new game for N players.  Every player begins with two
57      // extra lifes.      // extra lifes. if 'add_yinyang' is true every player additionally
58      void NewGame(int nplayers);      // gets one it-yinyang.
59        void NewGame(int nplayers, bool add_yinyang);
60    
61      /* This is called whenever a new level is reached in a running      /* This is called whenever a new level is reached in a running
62         game.  The inventories of all players are cleaned up, i.e., all         game.  The inventories of all players are cleaned up, i.e., all
# Line 70  namespace player Line 71  namespace player
71         two players. */         two players. */
72      void SwapPlayers();      void SwapPlayers();
73    
74      int CurrentPlayer();      // set/remove respawn positions for all black or all white actors
75      void SetCurrentPlayer(unsigned iplayer);      // (used when it-flagwhite/black is dropped)
76        void SetRespawnPositions(enigma::GridPos pos, bool black);
77        void RemoveRespawnPositions(bool black);
78    
79        int      CurrentPlayer();
80        void     SetCurrentPlayer(unsigned iplayer);
81      unsigned NumberOfRealPlayers();      unsigned NumberOfRealPlayers();
82    
83      Inventory *GetInventory(int iplayer);      Inventory *GetInventory(int iplayer);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26