Commits

Ivan Vučica  committed 437badc

Moved extern GameMode * gGame to gamemode.h.

  • Participants
  • Parent commits 8c454b3

Comments (0)

Files changed (4)

 #include "texture.h"
 #include "gm_level.h"
 #include "gm_credits.h"
+#include "gamemode.h"
 
-extern GameMode * gGame;
 extern bool gRunning;
 
 Button::Button(const std::string& textureFile,
     private:
 };
 
+extern GameMode * gGame;
+
 #endif

File playership.cpp

 #include <SDL/SDL_events.h>
 #include "bullet.h"
 #include "gm_level.h"
+#include "gamemode.h"
 
 static const double playerShipAngleV = 180;
 static const double playerShipYV = 150;
 
-extern GameMode* gGame;
-
 PlayerShip::PlayerShip(const std::string& textureFile,
                        const double argX,
                        const double argY) : texture(new Texture(textureFile)), x(argX), y(argY), angle(0), angleV(0), yv(0)

File pucaljka.cpp

 
 SDL_Surface * gScreen = NULL;
 bool gRunning = true;
-extern GameMode * gGame;
 
 /*****************************/