1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Change all UtilityClass::something to help.something

This changes something like UtilityClass::String to help.String,
basically. It takes less typing this way, and is a neat effect of having
global args actually be global variables.
This commit is contained in:
Misa 2020-04-02 12:30:37 -07:00 committed by Ethan Lee
parent c8906d97f5
commit 6c6b6c68ff
8 changed files with 115 additions and 115 deletions

View file

@ -4461,7 +4461,7 @@ bool entityclass::entitycollide( int a, int b )
temph = entities[b].h;
rect2set(tempx, tempy, tempw, temph);
if (UtilityClass::intersects(temprect, temprect2)) return true;
if (help.intersects(temprect, temprect2)) return true;
return false;
}
@ -4482,7 +4482,7 @@ bool entityclass::checkdamage()
{
if (blocks[j].type == DAMAGE && blocks[j].active)
{
if(UtilityClass::intersects(blocks[j].rect, temprect))
if(help.intersects(blocks[j].rect, temprect))
{
return true;
}
@ -4510,7 +4510,7 @@ bool entityclass::scmcheckdamage()
{
if (blocks[j].type == DAMAGE && blocks[j].active)
{
if(UtilityClass::intersects(blocks[j].rect, temprect))
if(help.intersects(blocks[j].rect, temprect))
{
return true;
}
@ -4548,7 +4548,7 @@ int entityclass::checktrigger()
{
if (blocks[j].type == TRIGGER && blocks[j].active)
{
if (UtilityClass::intersects(blocks[j].rect, temprect))
if (help.intersects(blocks[j].rect, temprect))
{
activetrigger = blocks[j].trigger;
return blocks[j].trigger;
@ -4577,7 +4577,7 @@ int entityclass::checkactivity()
{
if (blocks[j].type == ACTIVITY && blocks[j].active)
{
if (UtilityClass::intersects(blocks[j].rect, temprect))
if (help.intersects(blocks[j].rect, temprect))
{
return j;
}
@ -4614,7 +4614,7 @@ bool entityclass::checkplatform()
{
if (blocks[i].type == BLOCK)
{
if (UtilityClass::intersects(blocks[i].rect, temprect))
if (help.intersects(blocks[i].rect, temprect))
{
px = blocks[i].xp;
py = blocks[i].yp;
@ -4636,15 +4636,15 @@ bool entityclass::checkblocks()
{
if (blocks[i].type == DIRECTIONAL)
{
if (dy > 0 && blocks[i].trigger == 0) if (UtilityClass::intersects(blocks[i].rect, temprect)) return true;
if (dy <= 0 && blocks[i].trigger == 1) if (UtilityClass::intersects(blocks[i].rect, temprect)) return true;
if (dx > 0 && blocks[i].trigger == 2) if (UtilityClass::intersects(blocks[i].rect, temprect)) return true;
if (dx <= 0 && blocks[i].trigger == 3) if (UtilityClass::intersects(blocks[i].rect, temprect)) return true;
if (dy > 0 && blocks[i].trigger == 0) if (help.intersects(blocks[i].rect, temprect)) return true;
if (dy <= 0 && blocks[i].trigger == 1) if (help.intersects(blocks[i].rect, temprect)) return true;
if (dx > 0 && blocks[i].trigger == 2) if (help.intersects(blocks[i].rect, temprect)) return true;
if (dx <= 0 && blocks[i].trigger == 3) if (help.intersects(blocks[i].rect, temprect)) return true;
}
}
if (blocks[i].type == BLOCK)
{
if (UtilityClass::intersects(blocks[i].rect, temprect))
if (help.intersects(blocks[i].rect, temprect))
{
return true;
}
@ -4653,7 +4653,7 @@ bool entityclass::checkblocks()
{
if( (dr)==1)
{
if (UtilityClass::intersects(blocks[i].rect, temprect))
if (help.intersects(blocks[i].rect, temprect))
{
return true;
}

View file

@ -13,7 +13,7 @@ std::vector<std::string> finalclass::loadlevel(int rx, int ry)
warpx = false;
warpy = false;
roomname = "Untitled room ["+UtilityClass::String(rx) + "," + UtilityClass::String(ry)+"]";
roomname = "Untitled room ["+help.String(rx) + "," + help.String(ry)+"]";
switch(t)
{

View file

@ -659,13 +659,13 @@ void Game::savecustomlevelstats()
if(numcustomlevelstats>=200)numcustomlevelstats=199;
msg = new TiXmlElement( "numcustomlevelstats" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(numcustomlevelstats).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(numcustomlevelstats).c_str() ));
msgs->LinkEndChild( msg );
std::string customlevelscorestr;
for(int i = 0; i < numcustomlevelstats; i++ )
{
customlevelscorestr += UtilityClass::String(customlevelscore[i]) + ",";
customlevelscorestr += help.String(customlevelscore[i]) + ",";
}
msg = new TiXmlElement( "customlevelscore" );
msg->LinkEndChild( new TiXmlText( customlevelscorestr.c_str() ));
@ -4557,7 +4557,7 @@ void Game::savestats()
std::string s_unlock;
for(size_t i = 0; i < unlock.size(); i++ )
{
s_unlock += UtilityClass::String(unlock[i]) + ",";
s_unlock += help.String(unlock[i]) + ",";
}
msg = new TiXmlElement( "unlock" );
msg->LinkEndChild( new TiXmlText( s_unlock.c_str() ));
@ -4566,7 +4566,7 @@ void Game::savestats()
std::string s_unlocknotify;
for(size_t i = 0; i < unlocknotify.size(); i++ )
{
s_unlocknotify += UtilityClass::String(unlocknotify[i]) + ",";
s_unlocknotify += help.String(unlocknotify[i]) + ",";
}
msg = new TiXmlElement( "unlocknotify" );
msg->LinkEndChild( new TiXmlText( s_unlocknotify.c_str() ));
@ -4575,7 +4575,7 @@ void Game::savestats()
std::string s_besttimes;
for(size_t i = 0; i < besttrinkets.size(); i++ )
{
s_besttimes += UtilityClass::String(besttimes[i]) + ",";
s_besttimes += help.String(besttimes[i]) + ",";
}
msg = new TiXmlElement( "besttimes" );
msg->LinkEndChild( new TiXmlText( s_besttimes.c_str() ));
@ -4584,7 +4584,7 @@ void Game::savestats()
std::string s_besttrinkets;
for(size_t i = 0; i < besttrinkets.size(); i++ )
{
s_besttrinkets += UtilityClass::String(besttrinkets[i]) + ",";
s_besttrinkets += help.String(besttrinkets[i]) + ",";
}
msg = new TiXmlElement( "besttrinkets" );
msg->LinkEndChild( new TiXmlText( s_besttrinkets.c_str() ));
@ -4593,7 +4593,7 @@ void Game::savestats()
std::string s_bestlives;
for(size_t i = 0; i < bestlives.size(); i++ )
{
s_bestlives += UtilityClass::String(bestlives[i]) + ",";
s_bestlives += help.String(bestlives[i]) + ",";
}
msg = new TiXmlElement( "bestlives" );
msg->LinkEndChild( new TiXmlText( s_bestlives.c_str() ));
@ -4602,7 +4602,7 @@ void Game::savestats()
std::string s_bestrank;
for(size_t i = 0; i < bestrank.size(); i++ )
{
s_bestrank += UtilityClass::String(bestrank[i]) + ",";
s_bestrank += help.String(bestrank[i]) + ",";
}
msg = new TiXmlElement( "bestrank" );
msg->LinkEndChild( new TiXmlText( s_bestrank.c_str() ));
@ -5696,7 +5696,7 @@ void Game::savetele()
std::string mapExplored;
for(size_t i = 0; i < map.explored.size(); i++ )
{
mapExplored += UtilityClass::String(map.explored[i]) + ",";
mapExplored += help.String(map.explored[i]) + ",";
}
msg = new TiXmlElement( "worldmap" );
msg->LinkEndChild( new TiXmlText( mapExplored.c_str() ));
@ -5705,7 +5705,7 @@ void Game::savetele()
std::string flags;
for(size_t i = 0; i < obj.flags.size(); i++ )
{
flags += UtilityClass::String(obj.flags[i]) + ",";
flags += help.String(obj.flags[i]) + ",";
}
msg = new TiXmlElement( "flags" );
msg->LinkEndChild( new TiXmlText( flags.c_str() ));
@ -5714,7 +5714,7 @@ void Game::savetele()
std::string crewstatsString;
for(size_t i = 0; i < crewstats.size(); i++ )
{
crewstatsString += UtilityClass::String(crewstats[i]) + ",";
crewstatsString += help.String(crewstats[i]) + ",";
}
msg = new TiXmlElement( "crewstats" );
msg->LinkEndChild( new TiXmlText( crewstatsString.c_str() ));
@ -5723,7 +5723,7 @@ void Game::savetele()
std::string collect;
for(size_t i = 0; i < obj.collect.size(); i++ )
{
collect += UtilityClass::String(obj.collect[i]) + ",";
collect += help.String(obj.collect[i]) + ",";
}
msg = new TiXmlElement( "collect" );
msg->LinkEndChild( new TiXmlText( collect.c_str() ));
@ -5736,27 +5736,27 @@ void Game::savetele()
//telecookie.data.savey = savey;
msg = new TiXmlElement( "finalx" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(map.finalx).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(map.finalx).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "finaly" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(map.finaly).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(map.finaly).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savex" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savex).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savex).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savey" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savey).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savey).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "saverx" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(saverx).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(saverx).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savery" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savery).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savery).c_str() ));
msgs->LinkEndChild( msg );
//telecookie.data.saverx = saverx;
@ -5767,19 +5767,19 @@ void Game::savetele()
//telecookie.data.trinkets = trinkets;
msg = new TiXmlElement( "savegc" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savegc).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savegc).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savedir" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savedir).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savedir).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savepoint" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savepoint).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savepoint).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "trinkets" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(trinkets).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(trinkets).c_str() ));
msgs->LinkEndChild( msg );
@ -5800,13 +5800,13 @@ void Game::savetele()
if(music.nicefade==1)
{
msg = new TiXmlElement( "currentsong" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(music.nicechange).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(music.nicechange).c_str() ));
msgs->LinkEndChild( msg );
}
else
{
msg = new TiXmlElement( "currentsong" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(music.currentsong).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(music.currentsong).c_str() ));
msgs->LinkEndChild( msg );
}
@ -5814,18 +5814,18 @@ void Game::savetele()
msg->LinkEndChild( new TiXmlText( teleportscript.c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "companion" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(companion).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(companion).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "lastsaved" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(lastsaved).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(lastsaved).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "supercrewmate" );
msg->LinkEndChild( new TiXmlText( BoolToString(supercrewmate) ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "scmprogress" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(scmprogress).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(scmprogress).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "scmmoveme" );
msg->LinkEndChild( new TiXmlText( BoolToString(scmmoveme) ));
@ -5845,31 +5845,31 @@ void Game::savetele()
msg = new TiXmlElement( "frames" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(frames).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(frames).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "seconds" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(seconds).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(seconds).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "minutes" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(minutes).c_str()) );
msg->LinkEndChild( new TiXmlText( help.String(minutes).c_str()) );
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "hours" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(hours).c_str()) );
msg->LinkEndChild( new TiXmlText( help.String(hours).c_str()) );
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "deathcounts" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(deathcounts).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(deathcounts).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "totalflips" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(totalflips).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(totalflips).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "hardestroom" );
msg->LinkEndChild( new TiXmlText( hardestroom.c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "hardestroomdeaths" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(hardestroomdeaths).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(hardestroomdeaths).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "finalmode" );
@ -5942,7 +5942,7 @@ void Game::savequick()
std::string mapExplored;
for(size_t i = 0; i < map.explored.size(); i++ )
{
mapExplored += UtilityClass::String(map.explored[i]) + ",";
mapExplored += help.String(map.explored[i]) + ",";
}
msg = new TiXmlElement( "worldmap" );
msg->LinkEndChild( new TiXmlText( mapExplored.c_str() ));
@ -5951,7 +5951,7 @@ void Game::savequick()
std::string flags;
for(size_t i = 0; i < obj.flags.size(); i++ )
{
flags += UtilityClass::String(obj.flags[i]) + ",";
flags += help.String(obj.flags[i]) + ",";
}
msg = new TiXmlElement( "flags" );
msg->LinkEndChild( new TiXmlText( flags.c_str() ));
@ -5960,7 +5960,7 @@ void Game::savequick()
std::string crewstatsString;
for(size_t i = 0; i < crewstats.size(); i++ )
{
crewstatsString += UtilityClass::String(crewstats[i]) + ",";
crewstatsString += help.String(crewstats[i]) + ",";
}
msg = new TiXmlElement( "crewstats" );
msg->LinkEndChild( new TiXmlText( crewstatsString.c_str() ));
@ -5969,7 +5969,7 @@ void Game::savequick()
std::string collect;
for(size_t i = 0; i < obj.collect.size(); i++ )
{
collect += UtilityClass::String(obj.collect[i]) + ",";
collect += help.String(obj.collect[i]) + ",";
}
msg = new TiXmlElement( "collect" );
msg->LinkEndChild( new TiXmlText( collect.c_str() ));
@ -5982,27 +5982,27 @@ void Game::savequick()
//telecookie.data.savey = savey;
msg = new TiXmlElement( "finalx" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(map.finalx).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(map.finalx).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "finaly" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(map.finaly).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(map.finaly).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savex" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savex).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savex).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savey" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savey).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savey).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "saverx" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(saverx).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(saverx).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savery" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savery).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savery).c_str() ));
msgs->LinkEndChild( msg );
//telecookie.data.saverx = saverx;
@ -6013,19 +6013,19 @@ void Game::savequick()
//telecookie.data.trinkets = trinkets;
msg = new TiXmlElement( "savegc" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savegc).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savegc).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savedir" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savedir).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savedir).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savepoint" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savepoint).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savepoint).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "trinkets" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(trinkets).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(trinkets).c_str() ));
msgs->LinkEndChild( msg );
@ -6045,13 +6045,13 @@ void Game::savequick()
if(music.nicefade==1)
{
msg = new TiXmlElement( "currentsong" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(music.nicechange).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(music.nicechange).c_str() ));
msgs->LinkEndChild( msg );
}
else
{
msg = new TiXmlElement( "currentsong" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(music.currentsong).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(music.currentsong).c_str() ));
msgs->LinkEndChild( msg );
}
@ -6059,18 +6059,18 @@ void Game::savequick()
msg->LinkEndChild( new TiXmlText( teleportscript.c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "companion" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(companion).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(companion).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "lastsaved" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(lastsaved).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(lastsaved).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "supercrewmate" );
msg->LinkEndChild( new TiXmlText( BoolToString(supercrewmate) ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "scmprogress" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(scmprogress).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(scmprogress).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "scmmoveme" );
msg->LinkEndChild( new TiXmlText( BoolToString(scmmoveme) ));
@ -6100,31 +6100,31 @@ void Game::savequick()
msg = new TiXmlElement( "frames" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(frames).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(frames).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "seconds" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(seconds).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(seconds).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "minutes" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(minutes).c_str()) );
msg->LinkEndChild( new TiXmlText( help.String(minutes).c_str()) );
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "hours" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(hours).c_str()) );
msg->LinkEndChild( new TiXmlText( help.String(hours).c_str()) );
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "deathcounts" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(deathcounts).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(deathcounts).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "totalflips" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(totalflips).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(totalflips).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "hardestroom" );
msg->LinkEndChild( new TiXmlText( hardestroom.c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "hardestroomdeaths" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(hardestroomdeaths).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(hardestroomdeaths).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "summary" );
@ -6183,7 +6183,7 @@ void Game::customsavequick(std::string savfile)
std::string mapExplored;
for(size_t i = 0; i < map.explored.size(); i++ )
{
mapExplored += UtilityClass::String(map.explored[i]) + ",";
mapExplored += help.String(map.explored[i]) + ",";
}
msg = new TiXmlElement( "worldmap" );
msg->LinkEndChild( new TiXmlText( mapExplored.c_str() ));
@ -6192,7 +6192,7 @@ void Game::customsavequick(std::string savfile)
std::string flags;
for(size_t i = 0; i < obj.flags.size(); i++ )
{
flags += UtilityClass::String(obj.flags[i]) + ",";
flags += help.String(obj.flags[i]) + ",";
}
msg = new TiXmlElement( "flags" );
msg->LinkEndChild( new TiXmlText( flags.c_str() ));
@ -6201,7 +6201,7 @@ void Game::customsavequick(std::string savfile)
std::string moods;
for(int i = 0; i < 6; i++ )
{
moods += UtilityClass::String(obj.customcrewmoods[i]) + ",";
moods += help.String(obj.customcrewmoods[i]) + ",";
}
msg = new TiXmlElement( "moods" );
msg->LinkEndChild( new TiXmlText( moods.c_str() ));
@ -6210,7 +6210,7 @@ void Game::customsavequick(std::string savfile)
std::string crewstatsString;
for(size_t i = 0; i < crewstats.size(); i++ )
{
crewstatsString += UtilityClass::String(crewstats[i]) + ",";
crewstatsString += help.String(crewstats[i]) + ",";
}
msg = new TiXmlElement( "crewstats" );
msg->LinkEndChild( new TiXmlText( crewstatsString.c_str() ));
@ -6219,7 +6219,7 @@ void Game::customsavequick(std::string savfile)
std::string collect;
for(size_t i = 0; i < obj.collect.size(); i++ )
{
collect += UtilityClass::String(obj.collect[i]) + ",";
collect += help.String(obj.collect[i]) + ",";
}
msg = new TiXmlElement( "collect" );
msg->LinkEndChild( new TiXmlText( collect.c_str() ));
@ -6228,7 +6228,7 @@ void Game::customsavequick(std::string savfile)
std::string customcollect;
for(size_t i = 0; i < obj.customcollect.size(); i++ )
{
customcollect += UtilityClass::String(obj.customcollect[i]) + ",";
customcollect += help.String(obj.customcollect[i]) + ",";
}
msg = new TiXmlElement( "customcollect" );
msg->LinkEndChild( new TiXmlText( customcollect.c_str() ));
@ -6241,27 +6241,27 @@ void Game::customsavequick(std::string savfile)
//telecookie.data.savey = savey;
msg = new TiXmlElement( "finalx" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(map.finalx).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(map.finalx).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "finaly" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(map.finaly).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(map.finaly).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savex" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savex).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savex).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savey" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savey).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savey).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "saverx" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(saverx).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(saverx).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savery" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savery).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savery).c_str() ));
msgs->LinkEndChild( msg );
//telecookie.data.saverx = saverx;
@ -6272,23 +6272,23 @@ void Game::customsavequick(std::string savfile)
//telecookie.data.trinkets = trinkets;
msg = new TiXmlElement( "savegc" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savegc).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savegc).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savedir" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savedir).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savedir).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "savepoint" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(savepoint).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(savepoint).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "trinkets" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(trinkets).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(trinkets).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "crewmates" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(crewmates).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(crewmates).c_str() ));
msgs->LinkEndChild( msg );
@ -6308,13 +6308,13 @@ void Game::customsavequick(std::string savfile)
if(music.nicefade==1)
{
msg = new TiXmlElement( "currentsong" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(music.nicechange).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(music.nicechange).c_str() ));
msgs->LinkEndChild( msg );
}
else
{
msg = new TiXmlElement( "currentsong" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(music.currentsong).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(music.currentsong).c_str() ));
msgs->LinkEndChild( msg );
}
@ -6322,18 +6322,18 @@ void Game::customsavequick(std::string savfile)
msg->LinkEndChild( new TiXmlText( teleportscript.c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "companion" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(companion).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(companion).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "lastsaved" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(lastsaved).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(lastsaved).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "supercrewmate" );
msg->LinkEndChild( new TiXmlText( BoolToString(supercrewmate) ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "scmprogress" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(scmprogress).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(scmprogress).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "scmmoveme" );
msg->LinkEndChild( new TiXmlText( BoolToString(scmmoveme) ));
@ -6353,31 +6353,31 @@ void Game::customsavequick(std::string savfile)
msg = new TiXmlElement( "frames" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(frames).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(frames).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "seconds" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(seconds).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(seconds).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "minutes" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(minutes).c_str()) );
msg->LinkEndChild( new TiXmlText( help.String(minutes).c_str()) );
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "hours" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(hours).c_str()) );
msg->LinkEndChild( new TiXmlText( help.String(hours).c_str()) );
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "deathcounts" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(deathcounts).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(deathcounts).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "totalflips" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(totalflips).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(totalflips).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "hardestroom" );
msg->LinkEndChild( new TiXmlText( hardestroom.c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "hardestroomdeaths" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(hardestroomdeaths).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(hardestroomdeaths).c_str() ));
msgs->LinkEndChild( msg );
msg = new TiXmlElement( "showminimap" );

View file

@ -23,7 +23,7 @@ std::vector<std::string> labclass::loadlevel(int rx, int ry)
std::vector<std::string> tmap;
coin = 0;
rcol = 0;
roomname = "Untitled room ["+UtilityClass::String(rx) + "," + UtilityClass::String(ry)+"]";
roomname = "Untitled room ["+help.String(rx) + "," + help.String(ry)+"]";
switch(t)
{

View file

@ -14,7 +14,7 @@ std::vector<std::string> spacestation2class::loadlevel(int rx, int ry)
t = rx + (ry * 100);
std::vector<std::string> tmap;
roomname = "Untitled room ["+UtilityClass::String(rx) + "," + UtilityClass::String(ry)+"]";
roomname = "Untitled room ["+help.String(rx) + "," + help.String(ry)+"]";
switch(t)
{

View file

@ -18,7 +18,7 @@ std::vector<std::string> warpclass::loadlevel(int rx, int ry)
warpx = false;
warpy = false;
roomname = "Untitled room ["+UtilityClass::String(rx) + "," + UtilityClass::String(ry)+"]";
roomname = "Untitled room ["+help.String(rx) + "," + help.String(ry)+"]";
switch(t)
{

View file

@ -1935,7 +1935,7 @@ void editorclass::save(std::string& _path)
msg->LinkEndChild( meta );
meta = new TiXmlElement( "Created" );
meta->LinkEndChild( new TiXmlText( UtilityClass::String(version).c_str() ));
meta->LinkEndChild( new TiXmlText( help.String(version).c_str() ));
msg->LinkEndChild( meta );
meta = new TiXmlElement( "Modified" );
@ -1943,7 +1943,7 @@ void editorclass::save(std::string& _path)
msg->LinkEndChild( meta );
meta = new TiXmlElement( "Modifiers" );
meta->LinkEndChild( new TiXmlText( UtilityClass::String(version).c_str() ));
meta->LinkEndChild( new TiXmlText( help.String(version).c_str() ));
msg->LinkEndChild( meta );
meta = new TiXmlElement( "Desc1" );
@ -1965,15 +1965,15 @@ void editorclass::save(std::string& _path)
data->LinkEndChild( msg );
msg = new TiXmlElement( "mapwidth" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(mapwidth).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(mapwidth).c_str() ));
data->LinkEndChild( msg );
msg = new TiXmlElement( "mapheight" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(mapheight).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(mapheight).c_str() ));
data->LinkEndChild( msg );
msg = new TiXmlElement( "levmusic" );
msg->LinkEndChild( new TiXmlText( UtilityClass::String(levmusic).c_str() ));
msg->LinkEndChild( new TiXmlText( help.String(levmusic).c_str() ));
data->LinkEndChild( msg );
//New save format
@ -1982,7 +1982,7 @@ void editorclass::save(std::string& _path)
{
for(int x = 0; x < mapwidth*40; x++ )
{
contentsString += UtilityClass::String(contents[x + (maxwidth*40*y)]) + ",";
contentsString += help.String(contents[x + (maxwidth*40*y)]) + ",";
}
}
msg = new TiXmlElement( "contents" );
@ -1995,7 +1995,7 @@ void editorclass::save(std::string& _path)
std::string contentsString;
for(int i = 0; i < contents.size(); i++ )
{
contentsString += UtilityClass::String(contents[i]) + ",";
contentsString += help.String(contents[i]) + ",";
}
msg = new TiXmlElement( "contents" );
msg->LinkEndChild( new TiXmlText( contentsString.c_str() ));

View file

@ -426,9 +426,9 @@ void titlerender()
game.currentmenuoption == 2 ||
game.currentmenuoption == 3 )
{
graphics.Print( -1, 85, "Flip is bound to: " + std::string(UtilityClass::GCString(game.controllerButton_flip)) , tr, tg, tb, true);
graphics.Print( -1, 95, "Enter is bound to: " + std::string(UtilityClass::GCString(game.controllerButton_map)), tr, tg, tb, true);
graphics.Print( -1, 105, "Menu is bound to: " + std::string(UtilityClass::GCString(game.controllerButton_esc)) , tr, tg, tb, true);
graphics.Print( -1, 85, "Flip is bound to: " + std::string(help.GCString(game.controllerButton_flip)) , tr, tg, tb, true);
graphics.Print( -1, 95, "Enter is bound to: " + std::string(help.GCString(game.controllerButton_map)), tr, tg, tb, true);
graphics.Print( -1, 105, "Menu is bound to: " + std::string(help.GCString(game.controllerButton_esc)) , tr, tg, tb, true);
}