mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 01:48:15 +03:00
Remove global args from editorclass
This removes global arg passing from all functions on editorclass. Callers have been updated correspondingly. Additionally, all 'dwgfx' has been replaced with 'graphics' in editor.cpp.
This commit is contained in:
@@ -7,9 +7,6 @@
|
||||
#include <string>
|
||||
#include "Script.h"
|
||||
|
||||
class KeyPoll; class Graphics; class Game; class mapclass; class entityclass; class UtilityClass; class musicclass;
|
||||
|
||||
|
||||
class edentities{
|
||||
public:
|
||||
int x, y, t;
|
||||
@@ -129,7 +126,7 @@ class editorclass{
|
||||
|
||||
void load(std::string& _path);
|
||||
void save(std::string& _path);
|
||||
void generatecustomminimap(Graphics& dwgfx, mapclass& map);
|
||||
void generatecustomminimap();
|
||||
int edgetile(int x, int y);
|
||||
int warpzoneedgetile(int x, int y);
|
||||
int outsideedgetile(int x, int y);
|
||||
@@ -142,7 +139,7 @@ class editorclass{
|
||||
int findcrewmate(int t);
|
||||
int findwarptoken(int t);
|
||||
void countstuff();
|
||||
void findstartpoint(Game& game);
|
||||
void findstartpoint();
|
||||
void weirdloadthing(std::string t);
|
||||
int getlevelcol(int t);
|
||||
int getenemycol(int t);
|
||||
@@ -245,16 +242,15 @@ int edentat(int xp, int yp);
|
||||
|
||||
bool edentclear(int xp, int yp);
|
||||
|
||||
void fillbox(Graphics& dwgfx, int x, int y, int x2, int y2, int c);
|
||||
void fillbox(int x, int y, int x2, int y2, int c);
|
||||
|
||||
void fillboxabs(Graphics& dwgfx, int x, int y, int x2, int y2, int c);
|
||||
void fillboxabs(int x, int y, int x2, int y2, int c);
|
||||
|
||||
void editorrender(KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map, entityclass& obj, UtilityClass& help);
|
||||
void editorrender();
|
||||
|
||||
void editorlogic(KeyPoll& key, Graphics& dwgfx, Game& game, entityclass& obj, musicclass& music, mapclass& map, UtilityClass& help);
|
||||
void editorlogic();
|
||||
|
||||
void editorinput(KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map,
|
||||
entityclass& obj, UtilityClass& help, musicclass& music);
|
||||
void editorinput();
|
||||
|
||||
#endif /* EDITOR_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user