mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Hello WWWWWWorld!
This commit is contained in:
46
desktop_version/src/UtilityClass.h
Normal file
46
desktop_version/src/UtilityClass.h
Normal file
@@ -0,0 +1,46 @@
|
||||
#ifndef UTILITYCLASS_H
|
||||
#define UTILITYCLASS_H
|
||||
|
||||
#include <SDL.h>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
int ss_toi(std::string _s);
|
||||
|
||||
std::vector<std::string> split(const std::string &s, char delim, std::vector<std::string> &elems);
|
||||
|
||||
std::vector<std::string> split(const std::string &s, char delim);
|
||||
|
||||
|
||||
//helperClass
|
||||
class UtilityClass
|
||||
{
|
||||
public:
|
||||
UtilityClass();
|
||||
|
||||
static std::string String(int _v);
|
||||
|
||||
static std::string GCString(std::vector<SDL_GameControllerButton> buttons);
|
||||
|
||||
std::string twodigits(int t);
|
||||
|
||||
std::string timestring(int t);
|
||||
|
||||
std::string number(int _t);
|
||||
|
||||
|
||||
static bool intersects( SDL_Rect A, SDL_Rect B );
|
||||
|
||||
void updateglow();
|
||||
|
||||
int glow;
|
||||
int slowsine;
|
||||
int glowdir;
|
||||
int globaltemp;
|
||||
int temp;
|
||||
int temp2;
|
||||
std::string tempstring;
|
||||
std::vector<int> splitseconds;
|
||||
};
|
||||
|
||||
#endif /* UTILITYCLASS_H */
|
||||
Reference in New Issue
Block a user