mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 09:00:34 +00:00
function wsname for debugging
This commit is contained in:
parent
0b5a32d1c1
commit
fdf2162b36
12
barriers.cpp
12
barriers.cpp
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user