#include "game.h"
#include <stdarg.h>
+#include <string>
+
using namespace std;
#ifdef BUILD_GRAPHICS
if (graphicsEnabled && (!Graphics::Initialised()))
- Graphics::Initialise("Stratego", theBoard.Width()*32, theBoard.Height()*32);
+ {
+ string s = "Stratego: ";
+ s += string(redPath);
+ s += " ";
+ s += string(bluePath);
+ Graphics::Initialise(s.c_str(), theBoard.Width()*GRID_SIZE, theBoard.Height()*GRID_SIZE);
+ }
#endif //BUILD_GRAPHICS
#ifdef BUILD_GRAPHICS
if (graphicsEnabled && (!Graphics::Initialised()))
- Graphics::Initialise("Stratego", theBoard.Width()*32, theBoard.Height()*32);
+ {
+ string s = "Stratego: (file) ";
+ s += string(fromFile);
+ Graphics::Initialise(s.c_str(), theBoard.Width()*GRID_SIZE, theBoard.Height()*GRID_SIZE);
+ }
#endif //BUILD_GRAPHICS
input = fopen(fromFile, "r");