mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-09-20 21:37:26 +02:00
b53d2ae53f
The only class that actually needs its i/j/k kept is scriptclass, because some custom levels rely on it for creating custom activity zones. So I haven't touched that. Other than that, there's no chance that anything important relies on i/j/k in any other class. For that to be the case, it would have to use i/j/k without initializing it beforehand, and that can simply be detected by removing the attribute from the header file and seeing where the compiler complains. And the compiler complains only about cases where it's initialized first. (Note that due to this check, I *haven't* removed Graphics's `m` as it precisely does exactly this, using it without initializing it first.) Interestingly enough, otherlevelclass and towerclass have unused i/k variables for whatever reason.
43 lines
701 B
C++
43 lines
701 B
C++
#ifndef TOWER_H
|
|
#define TOWER_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class towerclass
|
|
{
|
|
public:
|
|
towerclass();
|
|
|
|
int backat(int xp, int yp, int yoff);
|
|
|
|
int at(int xp, int yp, int yoff);
|
|
|
|
int miniat(int xp, int yp, int yoff);
|
|
|
|
void loadminitower1();
|
|
|
|
void loadminitower2();
|
|
|
|
void loadbackground();
|
|
|
|
void loadmap();
|
|
|
|
//public var back:Array = new Array();
|
|
//public var contents:Array = new Array();
|
|
//public var minitower:Array = new Array();
|
|
//public var vmult:Array = new Array();
|
|
|
|
std::vector<int> back;
|
|
std::vector<int> contents;
|
|
std::vector<int> minitower;
|
|
std::vector<int> vmult;
|
|
|
|
bool minitowermode;
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* TOWER_H */
|