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 |
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); |
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(); |
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 |