mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-09 02:03:00 +00:00
nilrider:: gen_layer_list
This commit is contained in:
@@ -207,6 +207,14 @@ struct level {
|
|||||||
char mapchar(xy_int p);
|
char mapchar(xy_int p);
|
||||||
char mapchar(xy_float p) { return mapchar(pfloor(p)); }
|
char mapchar(xy_float p) { return mapchar(pfloor(p)); }
|
||||||
char mapchar(hyperpoint h) { return mapchar(pfloor(get_xy_f(h))); }
|
char mapchar(hyperpoint h) { return mapchar(pfloor(get_xy_f(h))); }
|
||||||
|
|
||||||
|
void gen_layer_list(vector<level*>& all) {
|
||||||
|
all.push_back(this); for(auto s: sublevels) s->gen_layer_list(all);
|
||||||
|
}
|
||||||
|
|
||||||
|
vector<level*> gen_layer_list() {
|
||||||
|
vector<level*> res; gen_layer_list(res); return res;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/** wheel radius */
|
/** wheel radius */
|
||||||
|
|||||||
Reference in New Issue
Block a user