1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Remove now-unused fillbackground/fillcontents/fillminitower from Tower

They are now unused because we no longer have to parse 120, 100, or 700
strings in order to load these tilemaps.
This commit is contained in:
Misa 2020-05-17 17:02:01 -07:00 committed by Ethan Lee
parent aae07336eb
commit 86516bb284
2 changed files with 0 additions and 44 deletions

View file

@ -104,32 +104,6 @@ int towerclass::miniat(int xp, int yp, int yoff)
return 0;
}
void towerclass::fillbackground(std::vector<std::string>& tmap)
{
for (int j = 0; j < 120; j++)
{
std::vector<std::string> maprow = split(tmap[j], ',');
for (int i = 0; i < 40; i++)
{
back[i + vmult[j]] = atoi(maprow[i].c_str());
}
}
}
void towerclass::fillminitower(std::vector<std::string>& tmap)
{
for (int j = 0; j < 100; j++)
{
std::vector<std::string> maprow = split(tmap[j], ',');
for (int i = 0; i < 40; i++)
{
minitower[i + vmult[j]] = atoi(maprow[i].c_str());
}
}
}
void towerclass::loadminitower1()
{
//Loads the first minitower into the array.
@ -487,18 +461,6 @@ void towerclass::loadbackground()
back.insert(back.end(), tmap, tmap + 120*40);
}
void towerclass::fillcontents(std::vector<std::string>& tmap)
{
for (int j = 0; j < 700; j++)
{
std::vector<std::string> maprow = split(tmap[j], ',');
for (int i = 0; i < 40; i++)
{
contents[i + vmult[j]] = atoi(maprow[i].c_str());
}
}
}
void towerclass::loadmap()
{
//Loads the map into the array.

View file

@ -15,18 +15,12 @@ public:
int miniat(int xp, int yp, int yoff);
void fillbackground(std::vector<std::string>& tmap);
void fillminitower(std::vector<std::string>& tmap);
void loadminitower1();
void loadminitower2();
void loadbackground();
void fillcontents(std::vector<std::string>& tmap);
void loadmap();
//public var back:Array = new Array();