/[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.3 by dheck, Thu Apr 24 21:27:10 2003 UTC revision 1.4 by reallysoft, Sun May 4 18:27:28 2003 UTC
# Line 5  Line 5 
5   * modify it under the terms of the GNU General Public License   * modify it under the terms of the GNU General Public License
6   * as published by the Free Software Foundation; either version 2   * as published by the Free Software Foundation; either version 2
7   * of the License, or (at your option) any later version.   * of the License, or (at your option) any later version.
8   *     *
9   * This program is distributed in the hope that it will be useful,   * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# Line 36  namespace player Line 36  namespace player
36          void add_item(Item *i);          void add_item(Item *i);
37          int size() { return items.size(); } // number of items          int size() { return items.size(); } // number of items
38          void clear();          void clear();
39            
40          bool is_full() const { return items.size() == max_items; }          bool is_full() const { return items.size() == max_items; }
41            
42          void rotate();          void rotate();
43          void activate_first();          void activate_first();
44          Item *get_item(int idx);          Item *get_item(int idx);
# Line 66  namespace player Line 66  namespace player
66      /* Call this function as soon as the current level is finished; it      /* Call this function as soon as the current level is finished; it
67         will remove the actors of all players from the level. */         will remove the actors of all players from the level. */
68      void LevelFinished();      void LevelFinished();
69        
70      /* This function is only used by the YinYang items to exchange the      /* This function is only used by the YinYang items to exchange the
71         two players. */         two players. */
72      void SwapPlayers();      void SwapPlayers();
73    
74      void SetCurrentPlayer(unsigned iplayer);      void SetCurrentPlayer(unsigned iplayer);
75    
76        
77      Inventory *GetInventory(int iplayer);      Inventory *GetInventory(int iplayer);
78      int CurrentPlayer();      int CurrentPlayer();
79      void Suicide();      void Suicide();
# Line 88  namespace player Line 88  namespace player
88      void ActivateItem();      void ActivateItem();
89    
90      void Tick (double dtime);      void Tick (double dtime);
91    
92        // move counter
93        void InitMoveCounter();
94        int  IncMoveCounter();
95        int  GetMoveCounter();
96  }  }
97  #endif  #endif

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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