1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 05:58:30 +02:00
VVVVVV/desktop_version/src/Textbox.h
Misa 33c5b8b7c0 Use const std::string& where possible in function params
If it's at all possible to use `const std::string&` when passing
`std::string`s around, then we use it. This is to limit the amount of
memory usage as a result of the frequent use of `std::string`s, so the
game no longer unnecessarily copies strings when it doesn't need to.
2021-09-06 15:43:59 -07:00

47 lines
665 B
C++

#ifndef TEXTBOX_H
#define TEXTBOX_H
#include <string>
#include <vector>
class textboxclass
{
public:
textboxclass(void);
void centerx(void);
void centery(void);
void adjust(void);
void initcol(int rr, int gg, int bb);
void update(void);
void remove(void);
void removefast(void);
void resize(void);
void addline(const std::string& t);
public:
//Fundamentals
std::vector<std::string> line;
int xp, yp, w, h;
int r,g,b;
int timer;
float tl;
float prev_tl;
int tm;
/* Whether to flip text box y-position in Flip Mode. */
bool flipme;
int rand;
};
#endif /* TEXTBOX_H */