mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
using arrays for items and kills
This commit is contained in:
parent
65cac5073f
commit
ed82d5bae9
5
game.cpp
5
game.cpp
@ -96,7 +96,10 @@ extern void DEBT(const char *buf);
|
||||
bool eq(short a, short b) { return a==b; }
|
||||
|
||||
// game state
|
||||
int items[ittypes], kills[motypes], explore[10], exploreland[10][landtypes], landcount[landtypes];
|
||||
array<int, ittypes> items;
|
||||
array<int, motypes> kills;
|
||||
|
||||
int explore[10], exploreland[10][landtypes], landcount[landtypes];
|
||||
map<modecode_t, array<int, ittypes> > hiitems;
|
||||
bool orbused[ittypes], lastorbused[ittypes];
|
||||
bool playermoved = true; // center on the PC?
|
||||
|
5
hyper.h
5
hyper.h
@ -884,7 +884,10 @@ bool isAlchAny(cell *c);
|
||||
extern cellwalker cwt; // player character position
|
||||
extern int sval;
|
||||
|
||||
extern int items[ittypes], kills[motypes], explore[10], exploreland[10][landtypes], landcount[landtypes];
|
||||
extern array<int, ittypes> items;
|
||||
extern array<int, motypes> kills;
|
||||
|
||||
extern int explore[10], exploreland[10][landtypes], landcount[landtypes];
|
||||
|
||||
typedef int modecode_t;
|
||||
extern map<modecode_t, array<int, ittypes> > hiitems;
|
||||
|
Loading…
Reference in New Issue
Block a user