world_generator/queued/TileConsts.cpp

71 lines
1.1 KiB
C++
Raw Normal View History

2019-04-20 14:51:33 +02:00
#include "TileConsts.h"
namespace BS {
2020-01-09 04:28:08 +01:00
namespace Levels {
namespace Generator {
bool TileConsts::isWall(char tile) {
switch (tile) {
case 11:
return true;
2019-04-20 14:51:33 +02:00
2020-01-09 04:28:08 +01:00
case 12:
return true;
2019-04-20 14:51:33 +02:00
2020-01-09 04:28:08 +01:00
case 13:
return true;
2019-04-20 14:51:33 +02:00
2020-01-09 04:28:08 +01:00
case 14:
return true;
2019-04-20 14:51:33 +02:00
2020-01-09 04:28:08 +01:00
case 15:
return true;
2019-04-20 14:51:33 +02:00
2020-01-09 04:28:08 +01:00
case 16:
return true;
2019-04-20 14:51:33 +02:00
2020-01-09 04:28:08 +01:00
case 17:
return true;
2019-04-20 14:51:33 +02:00
2020-01-09 04:28:08 +01:00
case 18:
return true;
2019-04-20 14:51:33 +02:00
2020-01-09 04:28:08 +01:00
case 21:
return true;
2019-04-20 14:51:33 +02:00
2020-01-09 04:28:08 +01:00
case 22:
return true;
2019-04-20 14:51:33 +02:00
2020-01-09 04:28:08 +01:00
case 23:
return true;
2019-04-20 14:51:33 +02:00
}
2020-01-09 04:28:08 +01:00
return false;
}
TileConsts::TileConsts() {
Floor = 1;
Floor_Var1 = 2;
Floor_Up = 3;
Floor_Left = 4;
Floor_Down = 5;
Floor_Right = 6;
Floor_UpRight = 7;
Floor_UpLeft = 8;
Floor_DownLeft = 9;
Floor_DownRight = 10;
Wall_Up = 11;
Wall_Right = 12;
Wall_Down = 13;
Wall_Left = 14;
Wall_Corner_TopRight = 15;
Wall_Corner_TopLeft = 16;
Wall_Corner_BottomRight = 17;
Wall_Corner_BottomRight_Outside = 23;
Wall_Corner_BottomLeft = 18;
Wall_Corner_BottomLeft_Outside = 21;
Wall_Corner_BottomLeft_Half_Outside = 22;
Roof_Wood_Single = 19;
Stair_Down = 20;
2019-04-20 14:51:33 +02:00
}
2020-01-09 04:28:08 +01:00
} // namespace Generator
} // namespace Levels
} // namespace BS