20 |
#ifndef PLAYER_HH |
#ifndef PLAYER_HH |
21 |
#define PLAYER_HH |
#define PLAYER_HH |
22 |
|
|
23 |
|
/* |
24 |
|
* Player management. Deals mostly with inventory management, |
25 |
|
* switching between players, respawning, etc. Players are numbered |
26 |
|
* from 0..N-1, where N is the number of players in the current game |
27 |
|
* (currently always 1 or 2). |
28 |
|
*/ |
29 |
|
|
30 |
#include "fwd.hh" |
#include "fwd.hh" |
31 |
#include "world.hh" |
#include "world.hh" |
32 |
#include <vector> |
#include <vector> |
61 |
std::vector<Item*> items; |
std::vector<Item*> items; |
62 |
}; |
}; |
63 |
|
|
64 |
// Start a new game for N players. Every player begins with two |
/* Start a new game for N players. Every player begins with two |
65 |
// extra lifes. if 'add_yinyang' is true every player additionally |
extra lifes. if 'add_yinyang' is true every player additionally |
66 |
// gets one it-yinyang. |
gets one it-yinyang. */ |
67 |
void NewGame(int nplayers, bool add_yinyang); |
void NewGame(int nplayers, bool add_yinyang); |
68 |
|
|
69 |
/* This is called whenever a new level is reached in a running |
/* This is called whenever a new level is reached in a running |