/* game.h This file is part of the Osirion project and is distributed under the terms of the GNU General Public License version 2 */ // project headers #include "ship.h" #include "star.h" #include "file.h" namespace game { Ship ship; Star star; bool initialized = false; // TODO datadir should by set by ./configure and read from config.h // FIXME win32 std::string datadir("./data/"); std::string homedir("~/.osirion/"); std::string basedir("base/"); std::string moddir; void init() { // load the world star.location = Vector3f(256.0f, 0.0f, 256.0f); ship.location = Vector3f(0,0,0); // TODO create game::homedir if it doesn't exist // read game.ini File f; f.open("game.ini"); f.close(); // all done, ready to run initialized = true; } void shutdown() { initialized = false; } void update(float elapsed) { ship.update(elapsed); } }; // namespace game