/
HelperFuns.h
71 lines (61 loc) · 1.83 KB
/
HelperFuns.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef HELPERFUNS_H_
#define HELPERFUNS_H_
#include "stdafx.h"
#include "SA2Rando.h"
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <time.h>
#include "SA2ModLoader.h"
#include <unordered_map>
#include <random>
#include <fstream>
#include "IniFile.h"
#include "BossTitles.h"
#include "RankVoices.h"
#define altcostume 0x80u
#define altcharacter 0x40
#define charmask ~(altcostume|altcharacter)
using std::vector;
using std::string;
using std::unordered_map;
using std::transform;
using std::shuffle;
TwitchChatter FirstCurrency(TwitchChatter tc, vector<int> rates);
vector<string> setUpMods(string path);
vector<int> setUpRates(string path);
TwitchChatter UpdateCurrency(TwitchChatter tc, vector<int> rates);
unordered_map<string, TwitchChatter> startUpScores(string path);
unordered_map<string, int> GetCommandCosts(string path);
TwitchMsg parseChat(string s);
string lowerCase(string data);
int returnSameCharLine(int line);
int isAttacking();
int returnMainCharLine(int line);
int sizeOfArray(int* a);
int returnSameCharALLGAMELine(int line);
bool isOmochaoLine(int i);
bool isMariaLine(int i);
void PrintPos(NJS_VECTOR a);
void PrintInt(int a);
void PrintF(float a);
int isIn(int a, int* b,int size);
bool isMech(int i);
bool isMechless(int i);
bool isSpeed(int i);
bool isHunt(int i);
bool sameType(int i, int r);
bool isBoss();
double dist(NJS_VECTOR a, NJS_VECTOR b);
float findClosestMM(int MMID);
boolean isHuntingStage();
int isHuntingStageInt();
boolean isHuntingStagei(int CurrentLevel);
void setUpSuper();
void fixSuper();
void createSplits(vector<StoryEntry>& stages, std::string category, bool showN);
std::string stageNumToName(int num);
void LogThis(std::string file, int seed, vector<StoryEntry>** stories);
int stageToChar(int stage);
#endif