mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-04 00:04:07 +00:00
removed hint def from hyper.h
This commit is contained in:
parent
f772f9b7fd
commit
059953fe58
10
hyper.h
10
hyper.h
@ -659,16 +659,6 @@ namespace scores { void load(); }
|
|||||||
namespace leader { void showMenu(); void handleKey(int sym, int uni); }
|
namespace leader { void showMenu(); void handleKey(int sym, int uni); }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct hint {
|
|
||||||
time_t last;
|
|
||||||
function<bool()> usable;
|
|
||||||
function<void()> display;
|
|
||||||
function<void()> action;
|
|
||||||
};
|
|
||||||
|
|
||||||
extern hint hints[];
|
|
||||||
int counthints();
|
|
||||||
|
|
||||||
int textwidth(int siz, const string &str);
|
int textwidth(int siz, const string &str);
|
||||||
#if CAP_GL
|
#if CAP_GL
|
||||||
int gl_width(int size, const char *s);
|
int gl_width(int size, const char *s);
|
||||||
|
13
quit.cpp
13
quit.cpp
@ -40,7 +40,16 @@ void noaction() {}
|
|||||||
|
|
||||||
function<void()> cancel = noaction;
|
function<void()> cancel = noaction;
|
||||||
|
|
||||||
hint hints[] = {
|
#if HDR
|
||||||
|
struct hint {
|
||||||
|
time_t last;
|
||||||
|
function<bool()> usable;
|
||||||
|
function<void()> display;
|
||||||
|
function<void()> action;
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
EX hint hints[] = {
|
||||||
|
|
||||||
{
|
{
|
||||||
0,
|
0,
|
||||||
@ -512,7 +521,7 @@ EX void handleKeyQuit(int sym, int uni) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int counthints() {
|
EX int counthints() {
|
||||||
for(int h=0;; h++) if(hints[h].last < 0) return h;
|
for(int h=0;; h++) if(hints[h].last < 0) return h;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user