mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Remove global args from main game loadlevel() functions
This removes global args from Finalclass.cpp, Labclass.cpp, Otherlevel.cpp, Spacestation2.cpp, and WarpClass.cpp.
This commit is contained in:
parent
cef111d35b
commit
d910800423
11 changed files with 16 additions and 16 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "MakeAndPlay.h"
|
||||
|
||||
std::vector<std::string> finalclass::loadlevel(int rx, int ry, Game& game, entityclass& obj)
|
||||
std::vector<std::string> finalclass::loadlevel(int rx, int ry)
|
||||
{
|
||||
int t;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
class finalclass
|
||||
{
|
||||
public:
|
||||
std::vector<std::string> loadlevel(int rx, int ry, Game& game, entityclass& obj);
|
||||
std::vector<std::string> loadlevel(int rx, int ry);
|
||||
|
||||
std::string roomname;
|
||||
int coin, rcol;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "MakeAndPlay.h"
|
||||
|
||||
std::vector<std::string> labclass::loadlevel(int rx, int ry , Game& game, entityclass& obj)
|
||||
std::vector<std::string> labclass::loadlevel(int rx, int ry)
|
||||
{
|
||||
int t;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
class labclass
|
||||
{
|
||||
public:
|
||||
std::vector<std::string> loadlevel(int rx, int ry , Game& game, entityclass& obj);
|
||||
std::vector<std::string> loadlevel(int rx, int ry);
|
||||
|
||||
std::string roomname;
|
||||
int coin, rcol;
|
||||
|
|
|
@ -1316,7 +1316,7 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
case 1: //World Map
|
||||
tileset = 1;
|
||||
extrarow = 1;
|
||||
tmap = otherlevel.loadlevel(rx, ry, game, obj);
|
||||
tmap = otherlevel.loadlevel(rx, ry);
|
||||
fillcontent(tmap);
|
||||
roomname = otherlevel.roomname;
|
||||
tileset = otherlevel.roomtileset;
|
||||
|
@ -1329,7 +1329,7 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
}
|
||||
break;
|
||||
case 2: //The Lab
|
||||
tmap = lablevel.loadlevel(rx, ry, game, obj);
|
||||
tmap = lablevel.loadlevel(rx, ry);
|
||||
fillcontent(tmap);
|
||||
roomname = lablevel.roomname;
|
||||
tileset = 1;
|
||||
|
@ -1375,7 +1375,7 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
obj.createentity(280, 3216, 9, 8); // (shiny trinket)
|
||||
break;
|
||||
case 4: //The Warpzone
|
||||
tmap = warplevel.loadlevel(rx, ry, game, obj);
|
||||
tmap = warplevel.loadlevel(rx, ry);
|
||||
fillcontent(tmap);
|
||||
roomname = warplevel.roomname;
|
||||
tileset = 1;
|
||||
|
@ -1391,13 +1391,13 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
if (warpx && warpy) background = 5;
|
||||
break;
|
||||
case 5: //Space station
|
||||
tmap = spacestation2.loadlevel(rx, ry, game, obj);
|
||||
tmap = spacestation2.loadlevel(rx, ry);
|
||||
fillcontent(tmap);
|
||||
roomname = spacestation2.roomname;
|
||||
tileset = 0;
|
||||
break;
|
||||
case 6: //final level
|
||||
tmap = finallevel.loadlevel(finalx, finaly, game, obj);
|
||||
tmap = finallevel.loadlevel(finalx, finaly);
|
||||
fillcontent(tmap);
|
||||
roomname = finallevel.roomname;
|
||||
tileset = 1;
|
||||
|
@ -1550,7 +1550,7 @@ void mapclass::loadlevel(int rx, int ry)
|
|||
break;
|
||||
case 11: //Tower Hallways //Content is held in final level routine
|
||||
{
|
||||
tmap = finallevel.loadlevel(rx, ry, game, obj);
|
||||
tmap = finallevel.loadlevel(rx, ry);
|
||||
fillcontent(tmap);
|
||||
roomname = finallevel.roomname;
|
||||
tileset = 2;
|
||||
|
|
|
@ -11,7 +11,7 @@ void otherlevelclass::addline(std::string t)
|
|||
roomtext.push_back(text);
|
||||
}
|
||||
|
||||
std::vector<std::string> otherlevelclass::loadlevel(int rx, int ry , Game& game, entityclass& obj)
|
||||
std::vector<std::string> otherlevelclass::loadlevel(int rx, int ry)
|
||||
{
|
||||
int t;
|
||||
roomtileset = 1;
|
||||
|
|
|
@ -27,7 +27,7 @@ public:
|
|||
};
|
||||
|
||||
void addline(std::string t);
|
||||
std::vector<std::string> loadlevel(int rx, int ry , Game& game, entityclass& obj);
|
||||
std::vector<std::string> loadlevel(int rx, int ry);
|
||||
|
||||
std::string roomname;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "MakeAndPlay.h"
|
||||
|
||||
std::vector<std::string> spacestation2class::loadlevel(int rx, int ry, Game& game, entityclass& obj)
|
||||
std::vector<std::string> spacestation2class::loadlevel(int rx, int ry)
|
||||
{
|
||||
int t;
|
||||
rx -= 100;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
class spacestation2class
|
||||
{
|
||||
public:
|
||||
std::vector<std::string> loadlevel(int rx, int ry, Game& game, entityclass& obj);
|
||||
std::vector<std::string> loadlevel(int rx, int ry);
|
||||
std::string roomname;
|
||||
};
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include "MakeAndPlay.h"
|
||||
|
||||
std::vector<std::string> warpclass::loadlevel(int rx, int ry , Game& game, entityclass& obj)
|
||||
std::vector<std::string> warpclass::loadlevel(int rx, int ry)
|
||||
{
|
||||
int t;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
class warpclass
|
||||
{
|
||||
public:
|
||||
std::vector<std::string> loadlevel(int rx, int ry , Game& game, entityclass& obj);
|
||||
std::vector<std::string> loadlevel(int rx, int ry);
|
||||
std::string roomname;
|
||||
int coin, rcol;
|
||||
bool warpx, warpy;
|
||||
|
|
Loading…
Reference in a new issue