mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-16 16:09:42 +01:00
b5ff65c84e
Including a header file inside another header file means a bunch of files are going to be unnecessarily recompiled whenever that inner header file is changed. So I minimized the amount of header files included in a header file, and only included the ones that were necessary (system includes don't count, I'm only talking about includes from within this project). Then the includes are only in the .cpp files themselves. This also minimizes problems such as a NO_CUSTOM_LEVELS build failing because some file depended on an include that got included in editor.h, which is another benefit of removing unnecessary includes from header files.
13 lines
200 B
C++
13 lines
200 B
C++
#ifndef SPACESTATION2_H
|
|
#define SPACESTATION2_H
|
|
|
|
#include <string>
|
|
|
|
class spacestation2class
|
|
{
|
|
public:
|
|
const short* loadlevel(int rx, int ry);
|
|
std::string roomname;
|
|
};
|
|
|
|
#endif /* SPACESTATION2_H */
|