1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

function wsname for debugging

This commit is contained in:
Zeno Rogue 2021-08-04 17:41:54 +02:00
parent 0b5a32d1c1
commit fdf2162b36

View File

@ -117,6 +117,18 @@ EX bool on_wall(eLand ws) {
return among(ws, NOWALLSEP_WALL_CPOS, NOWALLSEP_WALL_CNEG, NOWALLSEP_WALL_EPOS, NOWALLSEP_WALL_ENEG);
}
string wsname(eLand ws) {
if(ws == NOWALLSEP) return "NO";
if(ws == NOWALLSEP_SWAP) return "SWAP";
if(ws == NOWALLSEP_USED) return "USED";
if(ws == NOWALLSEP_WALL) return "WALL";
if(ws == NOWALLSEP_WALL_CPOS) return "CPOS";
if(ws == NOWALLSEP_WALL_CNEG) return "CNEG";
if(ws == NOWALLSEP_WALL_EPOS) return "EPOS";
if(ws == NOWALLSEP_WALL_ENEG) return "ENEG";
return dnameof(ws);
}
EX bool general_barrier_advance(cellwalker& bb, int& dir, eLand& l1, eLand& l2, eLand& ws, bool setit) {
bool ok = true;
if(ws == NOWALLSEP_WALL) {