X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FGame.h;h=43f256e9f645cb2127aa92795a74234fae2b4e6b;hb=afc437d91c5c31a6569349a118ace6876737889f;hp=102f026f222e5de705e45d722f7dd9d5a1720ebf;hpb=6dc0cb8a0ff8bb50f3317c6c5e9e9d30391baa00;p=lugaru.git diff --git a/Source/Game.h b/Source/Game.h index 102f026..43f256e 100644 --- a/Source/Game.h +++ b/Source/Game.h @@ -27,7 +27,7 @@ along with Lugaru. If not, see . #include "Terrain.h" #include "Skybox.h" -#include "Skeleton.h" +#include "Animation/Skeleton.h" #include "Models.h" #include "Lights.h" #include "Person.h" @@ -147,11 +147,10 @@ void LoadStuff(); void LoadScreenTexture(); void LoadingScreen(); int DrawGLScene(StereoSide side); -void LoadMenu(); -void playdialogueboxsound(); +void playdialoguescenesound(); int findClosestPlayer(); void Loadlevel(int which); -void Loadlevel(const char *name); +void Loadlevel(const std::string& name); void Tick(); void TickOnce(); void TickOnceAfter(); @@ -161,7 +160,6 @@ int checkcollide(XYZ startpoint, XYZ endpoint); int checkcollide(XYZ startpoint, XYZ endpoint, int what); void fireSound(int sound = fireendsound); -void setKeySelected(); void inputText(std::string& str, unsigned* charselected); void flash(float amount = 1, int delay = 1); @@ -193,30 +191,6 @@ extern "C" { #define STUBBED(x) { static bool seen = false; if (!seen) { seen = true; fprintf(stderr, "STUBBED: %s at %s:%d\n", x, __FILE__, __LINE__); } } //#define STUBBED(x) -extern int numdialogues; -const int max_dialogues = 20; -const int max_dialoguelength = 20; -extern int numdialogueboxes[max_dialogues]; -extern int dialoguetype[max_dialogues]; -extern int dialogueboxlocation[max_dialogues][max_dialoguelength]; -extern float dialogueboxcolor[max_dialogues][max_dialoguelength][3]; -extern int dialogueboxsound[max_dialogues][max_dialoguelength]; -extern char dialoguetext[max_dialogues][max_dialoguelength][128]; -extern char dialoguename[max_dialogues][max_dialoguelength][64]; -extern XYZ dialoguecamera[max_dialogues][max_dialoguelength]; -extern XYZ participantlocation[max_dialogues][10]; -extern int participantfocus[max_dialogues][max_dialoguelength]; -extern int participantaction[max_dialogues][max_dialoguelength]; -extern float participantyaw[max_dialogues][10]; -extern XYZ participantfacing[max_dialogues][max_dialoguelength][10]; -extern float dialoguecamerayaw[max_dialogues][max_dialoguelength]; -extern float dialoguecamerapitch[max_dialogues][max_dialoguelength]; -extern int indialogue; -extern int whichdialogue; -extern int directing; -extern float dialoguetime; -extern int dialoguegonethrough[20]; - enum maptypes { mapkilleveryone, mapgosomewhere, mapkillsomeone, mapkillmost // These two are unused @@ -242,12 +216,13 @@ SDL_bool sdlEventProc(const SDL_Event &e); -enum optionIndex { UNKNOWN, HELP, FULLSCREEN, NOMOUSEGRAB, SOUND, OPENALINFO, SHOWRESOLUTIONS }; +enum optionIndex { UNKNOWN, HELP, FULLSCREEN, NOMOUSEGRAB, SOUND, OPENALINFO, SHOWRESOLUTIONS, DEBUG }; /* Number of options + 1 */ -const int commandLineOptionsNumber = 8; +const int commandLineOptionsNumber = 9; -extern const option::Descriptor usage[12]; +extern const option::Descriptor usage[13]; extern option::Option commandLineOptions[commandLineOptionsNumber]; +extern option::Option* commandLineOptionsBuffer; #endif