mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-03-28 06:17:03 +00:00
made classflag inline
This commit is contained in:
parent
f934943732
commit
83fa6334d3
@ -10,10 +10,10 @@
|
|||||||
namespace hr {
|
namespace hr {
|
||||||
|
|
||||||
#if HDR
|
#if HDR
|
||||||
const flagtype& classflag(eItem it) { return iinf[it].flags; }
|
const inline flagtype& classflag(eItem it) { return iinf[it].flags; }
|
||||||
const flagtype& classflag(eWall w) { return winf[w].flags; }
|
const inline flagtype& classflag(eWall w) { return winf[w].flags; }
|
||||||
const flagtype& classflag(eMonster m) { return minf[m].flags; }
|
const inline flagtype& classflag(eMonster m) { return minf[m].flags; }
|
||||||
const flagtype& classflag(eLand l) { return linf[l].flags; }
|
const inline flagtype& classflag(eLand l) { return linf[l].flags; }
|
||||||
|
|
||||||
#define ANYFLAGCHECK(name, cond, field, enum) inline bool name(enum w) { flagtype flag = classflag(w); return cond; } inline bool name(cell *c) { return name(c->field); }
|
#define ANYFLAGCHECK(name, cond, field, enum) inline bool name(enum w) { flagtype flag = classflag(w); return cond; } inline bool name(cell *c) { return name(c->field); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user