Files
VVVVVV/desktop_version/src/Otherlevel.h
Misa 9dcda17978 Turn map.contents into a plain array
map.contents always has 1200 tiles in it, there's no reason it should be
a vector.

This is a big commit because it requires changing all the level classes
to return a pointer to an array instead of returning a vector. Which
took a while for me to figure out, but eventually I did it. I tested to
make sure and there's no problems.
2020-07-06 11:19:24 -04:00

42 lines
585 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);
const int* loadlevel(int rx, int ry);
std::string roomname;
int roomtileset;
// roomtext thing in other level
bool roomtexton;
std::vector<Roomtext> roomtext;
};
#endif /* OTHERLEVEL_H */