mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-11-24 22:34:21 +03:00
Refactor explored rooms to use setters and getters
This makes it easier to add bounds checks to all accesses of map.explored. Also, all manually-written existing bounds checks have been removed, because they're going to go into the new getters and setters. The getter is mapclass::isexplored() and the setter is mapclass::setexplored().
This commit is contained in:
1 parent
b340a6ccc4
commit
c5e999c1d5
5 files changed
+66
-61
No files matched your search
@@ -92,6 +92,9 @@ public:
|
||||
bool explored[20 * 20];
|
||||
int vmult[30];
|
||||
|
||||
bool isexplored(const int rx, const int ry);
|
||||
void setexplored(const int rx, const int ry, const bool status);
|
||||
|
||||
int background;
|
||||
int rcol;
|
||||
int tileset;
|
||||
|
||||
Reference in new issue
Block a user