/*
Copyright (C) 2003, 2010 - Wolfire Games
+Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file)
This file is part of Lugaru.
-Lugaru is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
+Lugaru is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
-This program is distributed in the hope that it will be useful,
+Lugaru is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
-See the GNU General Public License for more details.
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+along with Lugaru. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _GAME_H_
#include "SDL.h"
-#if (defined(__APPLE__) && defined(__MACH__))
-# ifdef PLATFORM_MACOSX
-# error Do not define PLATFORM_MACOSX for new builds. It is for the old Carbonized build.
-# endif
-#endif
-
-#ifdef PLATFORM_MACOSX
-#include <Carbon.h>
-#include "Quicktime.h"
-#endif
-
-//Jordan included glut.h
-//#include <glut.h>
-
-#include "TGALoader.h"
+#include "ImageIO.h"
#include "Terrain.h"
#include "Skybox.h"
#include "Lights.h"
#include "Person.h"
#include "Sprite.h"
-//#include <agl.h>
#include "Text.h"
#include "Objects.h"
-//#include <DrawSprocket.h>
#include "Weapons.h"
#include "binio.h"
#include <fstream>
#include "Account.h"
#include "Sounds.h"
#include "Texture.h"
+#include "optionparser.h"
#define NB_CAMPAIGN_MENU_ITEM 7
extern float displaytime[15];
extern float displayblinkdelay;
extern bool displayblink;
-extern int displayselected;
+extern unsigned displayselected;
extern float consoleblinkdelay;
extern bool consoleblink;
-extern int consoleselected;
+extern unsigned consoleselected;
extern int oldenvironment;
extern int targetlevel;
void LoadingScreen();
int DrawGLScene(StereoSide side);
void LoadMenu();
+void playdialogueboxsound();
+int findClosestPlayer();
+void Loadlevel(int which);
+void Loadlevel(const char *name);
void Tick();
void TickOnce();
void TickOnceAfter();
void fireSound(int sound = fireendsound);
void setKeySelected();
-void inputText(std::string& str, int* charselected);
-void flash();
+void inputText(std::string& str, unsigned* charselected);
+void flash(float amount = 1, int delay = 1);
}
#ifndef __forceinline
extern const char *editortypenames[8];
+extern const char *rabbitskin[10];
+
+extern const char *wolfskin[3];
+
+extern const char **creatureskin[2];
+
+SDL_bool sdlEventProc(const SDL_Event &e);
+
+
+
+enum optionIndex { UNKNOWN, HELP, FULLSCREEN, NOMOUSEGRAB, SOUND, OPENALINFO, SHOWRESOLUTIONS };
+/* Number of options + 1 */
+const int commandLineOptionsNumber = 8;
+
+extern const option::Descriptor usage[12];
+
+extern option::Option commandLineOptions[commandLineOptionsNumber];
+
#endif