mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-06-25 05:58:30 +02:00
These unused variables distract from properly analyzing the code when you read it, since the xp/yp attributes of textboxclass already exist, too.
50 lines
684 B
C++
50 lines
684 B
C++
#ifndef TEXTBOX_H
|
|
#define TEXTBOX_H
|
|
|
|
#include <SDL.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 setcol(int rr, int gg, int bb);
|
|
|
|
void update(void);
|
|
|
|
void remove(void);
|
|
|
|
void removefast(void);
|
|
|
|
void resize(void);
|
|
|
|
void addline(std::string t);
|
|
public:
|
|
//Fundamentals
|
|
std::vector<std::string> line;
|
|
int xp, yp, lw, w, h;
|
|
int r,g,b;
|
|
int tr,tg,tb;
|
|
SDL_Rect textrect;
|
|
int timer;
|
|
|
|
float tl;
|
|
float prev_tl;
|
|
int tm;
|
|
|
|
int max;
|
|
|
|
};
|
|
|
|
#endif /* TEXTBOX_H */
|