Enumify terrain blockage and generalize the line of sight function
This should probably be two separate commits, but they're tangled together and I don't want to spend the effort to disentangle them.
This commit is contained in:
@@ -24,7 +24,7 @@ class cTerrain {
|
||||
public:
|
||||
std::string name;
|
||||
pic_num_t picture;
|
||||
unsigned char blockage;
|
||||
eTerObstruct blockage;
|
||||
ter_flag_t flag1;
|
||||
ter_flag_t flag2;
|
||||
ter_flag_t flag3; // new additional flag for special properties
|
||||
@@ -52,5 +52,7 @@ public:
|
||||
|
||||
std::ostream& operator << (std::ostream& out, eTerSpec& e);
|
||||
std::istream& operator >> (std::istream& in, eTerSpec& e);
|
||||
std::ostream& operator << (std::ostream& out, eTerObstruct& e);
|
||||
std::istream& operator >> (std::istream& in, eTerObstruct& e);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user