Starshatter_Open
Open source Starshatter engine
|
#include <Starshatter.h>
Public Types | |
enum | MODE { MENU_MODE, CLOD_MODE, CMPN_MODE, PREP_MODE, PLAN_MODE, LOAD_MODE, PLAY_MODE, EXIT_MODE } |
enum | LOBBY { NET_LOBBY_CLIENT, NET_LOBBY_SERVER } |
Public Types inherited from Game | |
enum | STATUS { OK, RUN, EXIT, PANIC, INIT_FAILED, TOO_MANY } |
Public Member Functions | |
Starshatter () | |
virtual | ~Starshatter () |
virtual bool | Init (HINSTANCE hi, HINSTANCE hpi, LPSTR cmdline, int nCmdShow) |
virtual bool | InitGame () |
virtual bool | ChangeVideo () |
virtual void | GameState () |
virtual void | Exit () |
virtual bool | OnHelp () |
int | GetGameMode () |
void | SetGameMode (int mode) |
void | RequestChangeVideo () |
void | LoadVideoConfig (const char *filename) |
void | SaveVideoConfig (const char *filename) |
void | SetupSplash () |
void | SetupMenuScreen () |
void | SetupCmpnScreen () |
void | SetupPlanScreen () |
void | SetupLoadScreen () |
void | SetupGameScreen () |
void | OpenTacticalReference () |
void | CreateWorld () |
int | KeyDown (int action) const |
void | PlayerCam (int mode) |
void | ViewSelection () |
void | MapKeys () |
void | SetTestMode (int t) |
int | GetScreenWidth () |
int | GetScreenHeight () |
int | LensFlare () |
int | Corona () |
int | Nebula () |
int | Dust () |
KeyMap & | GetKeyMap () |
int | GetLoadProgress () |
const char * | GetLoadActivity () |
void | InvalidateTextureCache () |
int | GetChatMode () const |
void | SetChatMode (int c) |
const char * | GetChatText () const |
void | StopNetGame () |
int | GetLobbyMode () |
void | SetLobbyMode (int mode=NET_LOBBY_CLIENT) |
void | StartLobby () |
void | StopLobby () |
void | ExecCutscene (const char *msn_file, const char *path) |
void | BeginCutscene () |
void | EndCutscene () |
bool | InCutscene () const |
Mission * | GetCutsceneMission () const |
const char * | GetSubtitles () const |
void | EndMission () |
void | StartOrResumeGame () |
Public Member Functions inherited from Game | |
Game () | |
virtual | ~Game () |
virtual int | Run () |
virtual bool | OnPaint () |
virtual void | Activate (bool f) |
virtual void | Pause (bool f) |
int | Status () const |
virtual void | ScreenCapture (const char *name=0) |
virtual void | AVICapture (const char *fname=0) |
const RenderStats & | GetPolyStats () |
virtual void | UpdateScreen () |
virtual void | CollectStats () |
virtual bool | InitApplication (HINSTANCE) |
virtual bool | InitInstance (HINSTANCE, int) |
virtual bool | InitContent () |
virtual bool | InitVideo () |
virtual bool | ResetVideo () |
virtual bool | ToggleFullscreen () |
virtual bool | AdjustWindowForChange () |
virtual bool | SetupPalette () |
virtual bool | LoadPalette (PALETTEENTRY *pal, BYTE *inv) |
virtual void | ShowStats () |
Static Public Member Functions | |
static void | MapKeys (KeyMap *mapping, int nkeys) |
static void | MapKey (int act, int key, int alt=0) |
static Starshatter * | GetInstance () |
static bool | UseFileSystem () |
Static Public Member Functions inherited from Game | |
static const char * | TYPENAME () |
static void | Panic (const char *msg=0) |
static bool | DisplayModeSupported (int w, int h, int bpp) |
static int | MaxTexSize () |
static int | MaxTexAspect () |
static int | GammaLevel () |
static void | SetGammaLevel (int g) |
static void | SetMaxTexSize (int n) |
static DWORD | RealTime () |
static DWORD | GameTime () |
static DWORD | TimeCompression () |
static void | SetTimeCompression (DWORD comp) |
static DWORD | Frame () |
static void | ResetGameTime () |
static void | SkipGameTime (double seconds) |
static double | FrameRate () |
static double | FrameTime () |
static double | GUITime () |
static void | SetMaxFrameLength (double seconds) |
static void | SetMinFrameLength (double seconds) |
static double | GetMaxFrameLength () |
static double | GetMinFrameLength () |
static Video * | GetVideo () |
static Color | GetScreenColor () |
static void | SetScreenColor (Color c) |
static bool | Active () |
static bool | Paused () |
static bool | Server () |
static bool | ShowMouse () |
static bool | IsWindowed () |
static HINSTANCE | GetHINST () |
static HWND | GetHWND () |
static void | UseLocale (Locale *locale) |
static Text | GetText (const char *key) |
static const char * | GetPanicMessage () |
Protected Member Functions | |
virtual void | DoMenuScreenFrame () |
virtual void | DoCmpnScreenFrame () |
virtual void | DoPlanScreenFrame () |
virtual void | DoLoadScreenFrame () |
virtual void | DoGameScreenFrame () |
virtual void | DoMouseFrame () |
virtual void | DoChatMode () |
virtual void | DoGameKeys () |
virtual bool | GameLoop () |
virtual void | UpdateWorld () |
virtual void | InstantiateMission () |
virtual bool | ResizeVideo () |
virtual void | InitMouse () |
Static Protected Attributes | |
static Starshatter * | instance = 0 |
static int | keymap [256] |
static int | keyalt [256] |
Static Protected Attributes inherited from Game | |
static bool | active = false |
static bool | paused = false |
static bool | server = false |
static bool | show_mouse = false |
static DWORD | base_game_time = 0 |
static DWORD | real_time = 0 |
static DWORD | game_time = 0 |
static DWORD | time_comp = 1 |
static DWORD | frame_number = 0 |
static double | max_frame_length = MAX_FRAME_TIME_NORMAL |
static double | min_frame_length = MIN_FRAME_TIME_NORMAL |
static char | panicbuf [256] |
Definition at line 45 of file Starshatter.h.
enum Starshatter::LOBBY |
Definition at line 68 of file Starshatter.h.
enum Starshatter::MODE |
Definition at line 58 of file Starshatter.h.
Starshatter::Starshatter | ( | ) |
Definition at line 146 of file Starshatter.cpp.
|
virtual |
Definition at line 238 of file Starshatter.cpp.
void Starshatter::BeginCutscene | ( | ) |
Definition at line 2709 of file Starshatter.cpp.
|
virtual |
Definition at line 694 of file Starshatter.cpp.
|
inline |
Definition at line 103 of file Starshatter.h.
void Starshatter::CreateWorld | ( | ) |
Definition at line 753 of file Starshatter.cpp.
|
protectedvirtual |
Definition at line 2029 of file Starshatter.cpp.
|
protectedvirtual |
Definition at line 1226 of file Starshatter.cpp.
|
protectedvirtual |
Definition at line 1604 of file Starshatter.cpp.
|
protectedvirtual |
Definition at line 1487 of file Starshatter.cpp.
|
protectedvirtual |
Definition at line 1306 of file Starshatter.cpp.
|
protectedvirtual |
Definition at line 1128 of file Starshatter.cpp.
|
protectedvirtual |
Definition at line 2178 of file Starshatter.cpp.
|
protectedvirtual |
Definition at line 1193 of file Starshatter.cpp.
|
inline |
Definition at line 105 of file Starshatter.h.
void Starshatter::EndCutscene | ( | ) |
Definition at line 2735 of file Starshatter.cpp.
void Starshatter::EndMission | ( | ) |
Definition at line 2773 of file Starshatter.cpp.
void Starshatter::ExecCutscene | ( | const char * | msn_file, |
const char * | path | ||
) |
Definition at line 2670 of file Starshatter.cpp.
|
virtual |
Reimplemented from Game.
Definition at line 319 of file Starshatter.cpp.
|
protectedvirtual |
Reimplemented from Game.
Definition at line 817 of file Starshatter.cpp.
|
virtual |
Reimplemented from Game.
Definition at line 927 of file Starshatter.cpp.
|
inline |
Definition at line 114 of file Starshatter.h.
|
inline |
Definition at line 116 of file Starshatter.h.
Mission * Starshatter::GetCutsceneMission | ( | ) | const |
Definition at line 2798 of file Starshatter.cpp.
|
inline |
Definition at line 72 of file Starshatter.h.
|
inlinestatic |
Reimplemented from Game.
Definition at line 96 of file Starshatter.h.
|
inline |
Definition at line 107 of file Starshatter.h.
|
inline |
Definition at line 110 of file Starshatter.h.
|
inline |
Definition at line 109 of file Starshatter.h.
int Starshatter::GetLobbyMode | ( | ) |
Definition at line 2815 of file Starshatter.cpp.
int Starshatter::GetScreenHeight | ( | ) |
Reimplemented from Game.
Definition at line 500 of file Starshatter.cpp.
int Starshatter::GetScreenWidth | ( | ) |
Reimplemented from Game.
Definition at line 489 of file Starshatter.cpp.
const char * Starshatter::GetSubtitles | ( | ) | const |
Definition at line 2804 of file Starshatter.cpp.
|
inline |
Definition at line 128 of file Starshatter.h.
|
virtual |
Reimplemented from Game.
Definition at line 372 of file Starshatter.cpp.
|
virtual |
Reimplemented from Game.
Definition at line 400 of file Starshatter.cpp.
|
protectedvirtual |
Definition at line 466 of file Starshatter.cpp.
|
protectedvirtual |
Definition at line 773 of file Starshatter.cpp.
void Starshatter::InvalidateTextureCache | ( | ) |
Definition at line 2661 of file Starshatter.cpp.
int Starshatter::KeyDown | ( | int | action | ) | const |
Definition at line 806 of file Starshatter.cpp.
|
inline |
Definition at line 102 of file Starshatter.h.
void Starshatter::LoadVideoConfig | ( | const char * | filename | ) |
Definition at line 2370 of file Starshatter.cpp.
|
static |
Definition at line 360 of file Starshatter.cpp.
void Starshatter::MapKeys | ( | ) |
Definition at line 338 of file Starshatter.cpp.
|
static |
Definition at line 349 of file Starshatter.cpp.
|
inline |
Definition at line 104 of file Starshatter.h.
|
virtual |
Reimplemented from Game.
Definition at line 328 of file Starshatter.cpp.
void Starshatter::OpenTacticalReference | ( | ) |
Definition at line 562 of file Starshatter.cpp.
void Starshatter::PlayerCam | ( | int | mode | ) |
Definition at line 1444 of file Starshatter.cpp.
void Starshatter::RequestChangeVideo | ( | ) |
Definition at line 483 of file Starshatter.cpp.
|
protectedvirtual |
Reimplemented from Game.
Definition at line 738 of file Starshatter.cpp.
void Starshatter::SaveVideoConfig | ( | const char * | filename | ) |
Definition at line 2618 of file Starshatter.cpp.
void Starshatter::SetChatMode | ( | int | c | ) |
Definition at line 2149 of file Starshatter.cpp.
void Starshatter::SetGameMode | ( | int | mode | ) |
Definition at line 583 of file Starshatter.cpp.
void Starshatter::SetLobbyMode | ( | int | mode = NET_LOBBY_CLIENT | ) |
Definition at line 2821 of file Starshatter.cpp.
|
inline |
Definition at line 94 of file Starshatter.h.
void Starshatter::SetupCmpnScreen | ( | ) |
Definition at line 2310 of file Starshatter.cpp.
void Starshatter::SetupGameScreen | ( | ) |
Definition at line 2352 of file Starshatter.cpp.
void Starshatter::SetupLoadScreen | ( | ) |
Definition at line 2338 of file Starshatter.cpp.
void Starshatter::SetupMenuScreen | ( | ) |
Definition at line 2296 of file Starshatter.cpp.
void Starshatter::SetupPlanScreen | ( | ) |
Definition at line 2324 of file Starshatter.cpp.
void Starshatter::SetupSplash | ( | ) |
Definition at line 2257 of file Starshatter.cpp.
void Starshatter::StartLobby | ( | ) |
Definition at line 2827 of file Starshatter.cpp.
void Starshatter::StartOrResumeGame | ( | ) |
Definition at line 511 of file Starshatter.cpp.
void Starshatter::StopLobby | ( | ) |
Definition at line 2851 of file Starshatter.cpp.
void Starshatter::StopNetGame | ( | ) |
Definition at line 2872 of file Starshatter.cpp.
|
protectedvirtual |
Reimplemented from Game.
Definition at line 855 of file Starshatter.cpp.
|
static |
Definition at line 554 of file Starshatter.cpp.
void Starshatter::ViewSelection | ( | ) |
Definition at line 1467 of file Starshatter.cpp.
|
protected |
Definition at line 171 of file Starshatter.h.
|
protected |
Definition at line 216 of file Starshatter.h.
|
protected |
Definition at line 221 of file Starshatter.h.
|
protected |
Definition at line 222 of file Starshatter.h.
|
protected |
Definition at line 160 of file Starshatter.h.
|
protected |
Definition at line 207 of file Starshatter.h.
|
protected |
Definition at line 218 of file Starshatter.h.
|
protected |
Definition at line 209 of file Starshatter.h.
|
protected |
Definition at line 211 of file Starshatter.h.
|
protected |
Definition at line 187 of file Starshatter.h.
|
protected |
Definition at line 201 of file Starshatter.h.
|
protected |
Definition at line 159 of file Starshatter.h.
|
protected |
Definition at line 155 of file Starshatter.h.
|
protected |
Definition at line 176 of file Starshatter.h.
|
protected |
Definition at line 175 of file Starshatter.h.
|
protected |
Definition at line 167 of file Starshatter.h.
|
protected |
Definition at line 174 of file Starshatter.h.
|
protected |
Definition at line 165 of file Starshatter.h.
|
staticprotected |
Definition at line 154 of file Starshatter.h.
|
staticprotected |
Definition at line 191 of file Starshatter.h.
|
protected |
Definition at line 192 of file Starshatter.h.
|
staticprotected |
Definition at line 190 of file Starshatter.h.
|
protected |
Definition at line 206 of file Starshatter.h.
|
protected |
Definition at line 181 of file Starshatter.h.
|
protected |
Definition at line 180 of file Starshatter.h.
|
protected |
Definition at line 215 of file Starshatter.h.
|
protected |
Definition at line 214 of file Starshatter.h.
|
protected |
Definition at line 213 of file Starshatter.h.
|
protected |
Definition at line 168 of file Starshatter.h.
|
protected |
Definition at line 157 of file Starshatter.h.
|
protected |
Definition at line 219 of file Starshatter.h.
|
protected |
Definition at line 156 of file Starshatter.h.
|
protected |
Definition at line 185 of file Starshatter.h.
|
protected |
Definition at line 198 of file Starshatter.h.
|
protected |
Definition at line 199 of file Starshatter.h.
|
protected |
Definition at line 166 of file Starshatter.h.
|
protected |
Definition at line 196 of file Starshatter.h.
|
protected |
Definition at line 197 of file Starshatter.h.
|
protected |
Definition at line 172 of file Starshatter.h.
|
protected |
Definition at line 208 of file Starshatter.h.
|
protected |
Definition at line 220 of file Starshatter.h.
|
protected |
Definition at line 182 of file Starshatter.h.
|
protected |
Definition at line 188 of file Starshatter.h.
|
protected |
Definition at line 158 of file Starshatter.h.
|
protected |
Definition at line 170 of file Starshatter.h.
|
protected |
Definition at line 203 of file Starshatter.h.
|
protected |
Definition at line 195 of file Starshatter.h.
|
protected |
Definition at line 162 of file Starshatter.h.
|
protected |
Definition at line 164 of file Starshatter.h.
|
protected |
Definition at line 163 of file Starshatter.h.
|
protected |
Definition at line 194 of file Starshatter.h.
|
protected |
Definition at line 177 of file Starshatter.h.
|
protected |
Definition at line 202 of file Starshatter.h.
|
protected |
Definition at line 184 of file Starshatter.h.
|
protected |
Definition at line 179 of file Starshatter.h.
|
protected |
Definition at line 178 of file Starshatter.h.
|
protected |
Definition at line 204 of file Starshatter.h.