1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 09:57:41 +00:00

racing:: first commit

This commit is contained in:
Zeno Rogue
2018-11-17 19:30:50 +01:00
parent 74ad8ea135
commit 16a5e45c0a
9 changed files with 479 additions and 2 deletions

20
hyper.h
View File

@@ -4675,5 +4675,25 @@ extern bool showquotients;
bool do_draw(cell *c, const transmatrix& T);
#if CAP_RACING
namespace racing {
extern bool on, player_relative;
void generate_track();
void show();
void prepare_subscreens();
extern vector<cell*> track;
extern map<cell*, pair<int, int> > trackstage;
extern int current_player;
}
bool subscreen_split(reaction_t for_each_subscreen);
#else
namespace racing { static const bool on = false; }
inline bool subscreen_split(reaction_t for_each_subscreen) { return false; }
#endif
}