1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 14:38:30 +02:00
VVVVVV/desktop_version/src/Otherlevel.h
Misa ec72031cfd Refactor Otherlevel.cpp to not use strings for tilemaps
Instead, they're all held in a constant int array instead.
2020-05-17 22:03:29 -04:00

43 lines
602 B
C++

#ifndef OTHERLEVEL_H
#define OTHERLEVEL_H
#include "Game.h"
#include "Entity.h"
#include <string>
#include <vector>
struct Roomtext
{
int x, y;
std::string text;
};
class otherlevelclass
{
public:
enum
{
BLOCK = 0,
TRIGGER,
DAMAGE,
DIRECTIONAL,
SAFE,
ACTIVITY
};
void addline(std::string t);
std::vector<int> loadlevel(int rx, int ry);
std::string roomname;
int roomtileset;
int i;
// roomtext thing in other level
bool roomtexton;
std::vector<Roomtext> roomtext;
};
#endif /* OTHERLEVEL_H */