|
0 A.D. | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
static bool |
_IsStrictNameChar( const char& c )
See Parser.cpp |
static bool |
_IsValueChar( const char& c )
See Parser.cpp |
std::ostream |
blackHoleStream(& blackHoleStreamBuf )
See CLogger.cpp |
static void |
cat_atow( FILE* out, const char* in_filename )
See Pyrogenesis.cpp |
InReaction |
conInputHandler( const SDL_Event_* ev )
See CConsole.cpp |
static bool |
ControllerPredicate( CEntity* entity, void* userdata )
See Player.cpp |
|
DEFINE_ERROR( PS_FAIL,"Fail" )
See Pyrogenesis.cpp |
|
DEFINE_ERROR( PS_OK,"OK" )
See Pyrogenesis.cpp |
|
ERROR_GROUP( Game )
File : World. |
|
ERROR_GROUP( File )
========================================================================= File : FilePacker. |
|
ERROR_GROUP( DllLoader )
See DllLoader.h |
|
ERROR_GROUP( CVFSFile )
See CVFSFile.h |
|
ERROR_SUBGROUP( Game, World )
See World.h |
|
ERROR_TYPE( File, InvalidVersion )
See FileUnpacker.h |
|
ERROR_TYPE( File, OpenFailed )
See FilePacker.h |
|
ERROR_TYPE( DllLoader, SymbolNotFound )
See DllLoader.h |
|
ERROR_TYPE( File, WriteFailed )
CFilePacker: class to assist in writing of binary files. |
|
ERROR_TYPE( CVFSFile, AlreadyLoaded )
See CVFSFile.h |
|
ERROR_TYPE( CVFSFile, LoadFailed )
See CVFSFile.h |
|
ERROR_TYPE( File, InvalidType )
See FileUnpacker.h |
|
ERROR_TYPE( File, ReadFailed )
See FileUnpacker.h |
|
ERROR_TYPE( File, UnexpectedEOF )
CFileUnpacker: class to assist in reading of binary files |
|
ERROR_TYPE( CVFSFile, InvalidBufferAccess )
See CVFSFile.h |
|
ERROR_TYPE( Game_World, MapLoadFailed )
See World.h |
|
ERROR_TYPE( DllLoader, DllNotLoaded )
See DllLoader.h |
const wchar_t* |
ErrorString( int err )
See Util.cpp |
int |
FindKeyCode( const CStr& keyname )
See KeyName.cpp |
CStr |
FindKeyName( int keycode )
See KeyName.cpp |
void |
FireWorldClickEvent( uint button, int clicks )
See Interact.cpp |
static long |
get_memory_alloc_count()
See Profile.cpp |
const char* |
GetErrorString( const PSERROR& err )
See Errors.cpp |
const char* |
GetErrorString( PSRETURN code )
See Errors.cpp |
InReaction |
GlobalsInputHandler( const SDL_Event_* ev )
See Globals.cpp |
static const wchar_t* |
HardcodedErrorString( int err )
See Util.cpp |
static bool |
HaveTimeForNextTask( double time_left, double time_budget, int estimated_duration_ms )
See Loader.cpp |
InReaction |
HotkeyInputHandler( const SDL_Event_* ev )
See Hotkey.cpp |
bool |
HotkeyIsPressed( const CStr& keyname )
See Hotkey.cpp |
void |
HotkeyRegisterGuiObject( const CStr& objName, const CStr& hotkeyName )
See Hotkey.cpp |
bool |
HotkeyRespondsTo( int hotkey, int sdlkey )
See Hotkey.cpp |
void |
InitKeyNameMap()
See KeyName.cpp |
InReaction |
InteractInputHandler( const SDL_Event_* ev )
See Interact.cpp |
static bool |
isLegalUTF8( const unsigned char* source, int Length )
Test for valid UTF-8 string |
bool |
IsMouseoverType( CEntity* e, void* UNUSED( userdata ) )
See Interact.cpp |
bool |
IsOnScreen( CEntity* e, void* UNUSED( userdata ) )
See Interact.cpp |
static bool |
isUnprintableChar( SDL_keysym key )
See CConsole.cpp |
LibError |
LDR_BeginRegistering()
See Loader.cpp |
LibError |
LDR_Cancel()
See Loader.cpp |
LibError |
LDR_EndRegistering()
See Loader.cpp |
LibError |
LDR_NonprogressiveLoad()
See Loader.cpp |
LibError |
LDR_ProgressiveLoad( double time_budget, wchar_t* description, size_t max_chars, int* progress_percent )
See Loader.cpp |
LibError |
LDR_Register( LoadFunc func, void* param, const wchar_t* description, int estimated_duration_ms )
See Loader.cpp |
static bool |
ldr_was_interrupted( int ret )
See LoaderThunks.h |
void |
LoadHotkeys()
See Hotkey.cpp |
static void |
LoadUnitUIThunk( const char* path, const DirEnt* UNUSED( ent ), void* context )
See Interact.cpp |
template< class T, class Arg > static int |
MemFun1Thunk( void* param, double UNUSED( time_left ) )
See LoaderThunks.h |
template< class T > static int |
MemFunThunk( void* param, double UNUSED( time_left ) )
See LoaderThunks.h |
void |
MouseButtonUpHandler( const SDL_Event_* ev, int clicks )
See Interact.cpp |
CLogger |
nullLogger(& blackHoleStream,& blackHoleStream, false )
See CLogger.cpp |
void |
psBundleLogs( FILE* f )
See Pyrogenesis.cpp |
const char* |
psGetLogDir()
See Pyrogenesis.cpp |
const wchar_t* |
psTranslate( const wchar_t* text )
See Pyrogenesis.cpp |
void |
psTranslateFree( const wchar_t* text )
See Pyrogenesis.cpp |
template< class T > void |
RegMemFun( T* this_, int( T::* func )( void ), const wchar_t* description, int estimated_duration_ms )
See LoaderThunks.h |
template< class T, class Arg > void |
RegMemFun1( T* this_, int( T::* func )( Arg ), Arg arg, const wchar_t* description, int estimated_duration_ms )
See LoaderThunks.h |
void |
ResetInteraction()
See Interact.cpp |
static void |
setBindings( const CStr& hotkeyName, int integerMapping =-1 )
See Hotkey.cpp |
static std::string |
SplitExts( const char* exts )
See Util.cpp |
void |
StartCustomSelection()
See Interact.cpp |
void |
ThrowError( PSRETURN code )
See Errors.cpp |
void |
WriteBigScreenshot( const char* extension, int tiles )
See Util.cpp |
void |
WriteScreenshot( const char* extension )
See Util.cpp |
void |
WriteSystemInfo()
See Util.cpp |
Macro Summary | |
#define |
_T(t) t
See UniDoubler.h |
#define |
CFG_GET_SYS_VAL(name, type, destinationSTMT(CConfigValue* val = g_ConfigDB.GetValue(CFG_SYSTEM, nameif(valval->Get##type(destination)
See ConfigDB.h |
#define |
CFG_GET_USER_VAL(name, type, destinationSTMT(CConfigValue* val = g_ConfigDB.GetValue(CFG_USER, nameif(valval->Get##type(destination)
See ConfigDB.h |
#define |
cfg_ns(_propname, _enum) STMT (JSObject *nsobj=g_ScriptingHost.CreateCustomObject("ConfigNamespace") debug_assert(nsobj) ConfigNamespace_JS::SetNamespace(cx, nsobj, _enum) debug_assert(JS_DefineProperty(cx, newObj, _propname, OBJECT_TO_JSVAL(nsobj), NULL, NULL, flags)) )
See ConfigDB.cpp |
#define |
DECLARE_ERROR(x) extern PS_RESULT x
See Pyrogenesis.h |
#define |
DEFINE_ERROR(x, y) PS_RESULT x=y
See Pyrogenesis.h |
#define |
ERROR_GROUP(a) class PSERROR_##a : public PSERROR {} extern const PSRETURN MASK__PSRETURN_##a extern const PSRETURN CODE__PSRETURN_##a
See Errors.h |
#define |
ERROR_IS(a, b) ( ((a) & MASK__PSRETURN_##b) == CODE__PSRETURN_##b )
See Errors.h |
#define |
ERROR_SUBGROUP(a, b) class PSERROR_##a##_##b : public PSERROR_##a {} extern const PSRETURN MASK__PSRETURN_##a##_##b extern const PSRETURN CODE__PSRETURN_##a##_##b
See Errors.h |
#define |
ERROR_TYPE(a, b) class PSERROR_##a##_##b : public PSERROR_##a { public: PSRETURN getCode() const } extern const PSRETURN MASK__PSRETURN_##a##_##b extern const PSRETURN CODE__PSRETURN_##a##_##b extern const PSRETURN PSRETURN_##a##_##b
See Errors.h |
#define |
FUNC_IMPL_CAST_GETDOUBLE(func_name, type) bool CParserValue::func_name(type &ret) { double d if (GetDouble(d)) return ret = (type)d, true else return false }
See Parser.cpp |
#define |
FUNC_IMPL_GETARG(func_name, get_name, type) bool CParserLine::func_name(size_t arg, type &ret) { if (GetArgCount() <= arg) return false return m_Arguments[arg].get_name(ret) }
See Parser.cpp |
#define |
LDR_CHECK_TIMEOUT(completed_jobs, total_jobsif(get_time(> end_time{int) progress_percent = ((completed_jobs)*100 / (total_jobs))if(progress_percent == 0)progress_percent = 1debug_assert(0 < progress_percent && progress_percent <= 100)return progress_percent}
See Loader.h |
#define |
LOCK_MUTEX(_mutex) pthread_mutex_lock(_mutex)
See ThreadUtil.h |
#define |
NUM_TYPE(T) CStr::CStr(T Number) { std::tstringstream ss ss << Number ss >> *this } CStr& CStr::operator=(T Number) { std::tstringstream ss ss << Number ss >> *this return *this }
See CStr.cpp |
#define |
PROFILE(name) CProfileSample __profile( name )
See Profile.h |
#define |
PROFILE_END(name) }
See Profile.h |
#define |
PROFILE_START(name) { CProfileSample __profile( name )
See Profile.h |
#define |
ucs2le_to_wchart(ptr) (wchar_t)(*ptr)
See StringConvert.cpp |
#define |
UNLOCK_MUTEX(_mutex) pthread_mutex_unlock(_mutex)
See ThreadUtil.h |
Field Detail |
BlackHoleStreamBuf blackHoleStreamBuf;
const PSRETURN CODE__PSRETURN_OK;
bool customSelectionMode;
const char* DefaultFont;
static double estimated_duration_tally;
static const unsigned char firstByteMark[ 7 ];
bool g_app_has_focus;
bool g_app_minimized;
CConsole* g_Console;
I18n::CLocale_interface* g_CurrentLocale;
std::string g_CurrentLocaleName;
CGame* g_Game;
bool g_keys[ SDLK_LAST ];
CLightEnv g_LightEnv;
CLogger* g_Logger;
bool g_mouse_buttons[ 6 ];
int g_mouse_x;
int g_mouse_y;
static GuiHotkeyMap guiHotkeyMap;
void* const HANDLE_UNAVAILABLE;
const int HK_MAX_KEYCODES;
static SHotkeyInfo hotkeyInfo[];
static KeyMapping hotkeyMap[ HK_MAX_KEYCODES ];
static GuiMapping hotkeyMapGui[ HK_MAX_KEYCODES ];
bool hotkeys[ HOTKEY_LAST ];
const char* html_footer;
const char* html_header0;
const char* html_header1;
static SKeycodeMapping keycodeMapping[];
static std::map< CStr, int > keymap;
static LoadRequests load_requests;
const PSRETURN MASK__PSRETURN_OK;
const int MOUSE_LEFT;
const int MOUSE_MIDDLE;
const int MOUSE_RIGHT;
const int MOUSE_WHEELDOWN;
const int MOUSE_WHEELUP;
static const u32 offsetsFromUTF8[ 6 ];
const int ORDER_DELAY;
static const char* prefix;
const PSRETURN PSRETURN_OK;
static NextNumberedFilenameInfo screenshot_nfi;
const int SDL_GUIHOTKEYPRESS;
const int SDL_HOTKEYDOWN;
const int SDL_HOTKEYUP;
static const double SELECT_DBLCLICK_RATE;
state;
static const char* suffix;
static double task_elapsed_time;
static double total_estimated_duration;
static const char trailingBytesForUTF8[ 256 ];
static const wchar_t* translate_no_mem;
static bool unified[ 5 ];
const int UNIFIED_ALT;
const int UNIFIED_CTRL;
const int UNIFIED_META;
const int UNIFIED_SHIFT;
const int UNIFIED_SUPER;
Method Detail |
static bool _IsStrictNameChar( const char& c );
static bool _IsValueChar( const char& c );
std::ostream blackHoleStream(& blackHoleStreamBuf );
static void cat_atow( FILE* out, const char* in_filename );
InReaction conInputHandler( const SDL_Event_* ev );
static bool ControllerPredicate( CEntity* entity, void* userdata );
DEFINE_ERROR( PS_FAIL,"Fail" );
DEFINE_ERROR( PS_OK,"OK" );
ERROR_GROUP( Game );
ERROR_GROUP( File );
ERROR_GROUP( DllLoader );
ERROR_GROUP( CVFSFile );
ERROR_SUBGROUP( Game, World );
ERROR_TYPE( File, InvalidVersion );
ERROR_TYPE( File, OpenFailed );
ERROR_TYPE( DllLoader, SymbolNotFound );
ERROR_TYPE( File, WriteFailed );
ERROR_TYPE( CVFSFile, AlreadyLoaded );
ERROR_TYPE( CVFSFile, LoadFailed );
ERROR_TYPE( File, InvalidType );
ERROR_TYPE( File, ReadFailed );
ERROR_TYPE( File, UnexpectedEOF );
ERROR_TYPE( CVFSFile, InvalidBufferAccess );
ERROR_TYPE( Game_World, MapLoadFailed );
ERROR_TYPE( DllLoader, DllNotLoaded );
const wchar_t* ErrorString( int err );
int FindKeyCode( const CStr& keyname );
CStr FindKeyName( int keycode );
void FireWorldClickEvent( uint button, int clicks );
static long get_memory_alloc_count();
const char* GetErrorString( const PSERROR& err );
const char* GetErrorString( PSRETURN code );
InReaction GlobalsInputHandler( const SDL_Event_* ev );
static const wchar_t* HardcodedErrorString( int err );
static bool HaveTimeForNextTask( double time_left, double time_budget, int estimated_duration_ms );
InReaction HotkeyInputHandler( const SDL_Event_* ev );
bool HotkeyIsPressed( const CStr& keyname );
void HotkeyRegisterGuiObject( const CStr& objName, const CStr& hotkeyName );
bool HotkeyRespondsTo( int hotkey, int sdlkey );
void InitKeyNameMap();
InReaction InteractInputHandler( const SDL_Event_* ev );
static bool isLegalUTF8( const unsigned char* source, int Length );
const
- unsigned char * source pointer to string to test.
int
- Length of string to test.bool IsMouseoverType( CEntity* e, void* UNUSED( userdata ) );
bool IsOnScreen( CEntity* e, void* UNUSED( userdata ) );
static bool isUnprintableChar( SDL_keysym key );
LibError LDR_BeginRegistering();
LibError LDR_Cancel();
LibError LDR_EndRegistering();
LibError LDR_NonprogressiveLoad();
LibError LDR_ProgressiveLoad( double time_budget, wchar_t* description, size_t max_chars, int* progress_percent );
LibError LDR_Register( LoadFunc func, void* param, const wchar_t* description, int estimated_duration_ms );
static bool ldr_was_interrupted( int ret );
void LoadHotkeys();
static void LoadUnitUIThunk( const char* path, const DirEnt* UNUSED( ent ), void* context );
template< class T, class Arg > static int MemFun1Thunk( void* param, double UNUSED( time_left ) );
template< class T > static int MemFunThunk( void* param, double UNUSED( time_left ) );
void MouseButtonUpHandler( const SDL_Event_* ev, int clicks );
CLogger nullLogger(& blackHoleStream,& blackHoleStream, false );
void psBundleLogs( FILE* f );
const char* psGetLogDir();
const wchar_t* psTranslate( const wchar_t* text );
void psTranslateFree( const wchar_t* text );
template< class T > void RegMemFun( T* this_, int( T::* func )( void ), const wchar_t* description, int estimated_duration_ms );
template< class T, class Arg > void RegMemFun1( T* this_, int( T::* func )( Arg ), Arg arg, const wchar_t* description, int estimated_duration_ms );
void ResetInteraction();
static void setBindings( const CStr& hotkeyName, int integerMapping =-1 );
static std::string SplitExts( const char* exts );
void StartCustomSelection();
void ThrowError( PSRETURN code );
void WriteBigScreenshot( const char* extension, int tiles );
void WriteScreenshot( const char* extension );
void WriteSystemInfo();
Symbol Detail |
#define _istspace isspace
#define _ThreadUtil_h
#define _totlower tolower
#define _totupper toupper
#define _tstod strtod
#define _ttoi atoi
#define _ttol atol
#define _UNICODE
#define CONSOLE_BUFFER_SIZE 1024
#define CONSOLE_MESSAGE_SIZE 1024
#define CStr CStr8
#define CStr_CPP_FIRST
#define CSTR_H_A
#define CSTR_H_U
#define CStr_hash_compare CStr8_hash_compare
#define END_DYNAMIC '>'
#define END_OPTIONAL ']'
#define ERROR_GROUP_FILE_DEFINED
#define ERROR_GROUP_GAME_DEFINED
#define g_BuildingPlacer CBuildingPlacer::GetSingleton()
#define g_ConfigDB CConfigDB::GetSingleton()
#define g_GameAttributes CGameAttributes::GetSingleton()
#define g_Mouseover CMouseoverEntities::GetSingleton()
#define g_Profiler CProfileManager::GetSingleton()
#define g_ProfileViewer CProfileViewer::GetSingleton()
#define g_Selection CSelectedEntities::GetSingleton()
#define GLIBC_MALLOC_HOOK
#define IN_UNIDOUBLER
#define INCLUDED_CCONSOLE
#define INCLUDED_CLOGGER
#define INCLUDED_CONFIGDB
#define INCLUDED_CSTR
#define INCLUDED_DLLLOADER
#define INCLUDED_ERRORS
#define INCLUDED_FILEPACKER
#define INCLUDED_FILEUNPACKER
#define INCLUDED_FONT
#define INCLUDED_GAME
#define INCLUDED_GAMEATTRIBUTES
#define INCLUDED_GAMERECORD
#define INCLUDED_KEYNAME
#define INCLUDED_LOADER
#define INCLUDED_OVERLAY
#define INCLUDED_PARSER
#define INCLUDED_PLAYER
#define INCLUDED_PROFILE
#define INCLUDED_PROFILE_VIEWER
#define INCLUDED_PYROGENESIS
#define INCLUDED_SINGLETON
#define INCLUDED_UTF16STRING
#define INCLUDED_VECTOR2D
#define INCLUDED_WORLD
#define LOG (g_Logger->Log)
#define LOG_ONCE (g_Logger->LogOnce)
#define MAX_BOOKMARKS 10
#define MAX_GROUPS 20
#define MICROLOG debug_wprintf_mem
#define PROFILE_AMORTIZE
#define PROFILE_AMORTIZE_FRAMES 50
#define PS_MAX_PLAYERS 8
#define REGULAR_EXPRESSION '$'
#define REGULAR_MAX_LENGTH 10
#define START_DYNAMIC '<'
#define START_OPTIONAL '['
#define tchar char
#define tstring string
#define tstringstream stringstream
#define UNIDOUBLER_HEADER "CStr.h"
Macro Detail |
#define _T(t) t
#define CFG_GET_SYS_VAL(name, type, destinationSTMT(CConfigValue* val = g_ConfigDB.GetValue(CFG_SYSTEM, name;if(valval->Get##type(destination;)
#define CFG_GET_USER_VAL(name, type, destinationSTMT(CConfigValue* val = g_ConfigDB.GetValue(CFG_USER, name;if(valval->Get##type(destination;)
#define cfg_ns(_propname, _enum) STMT (JSObject *nsobj=g_ScriptingHost.CreateCustomObject("ConfigNamespace"); debug_assert(nsobj); ConfigNamespace_JS::SetNamespace(cx, nsobj, _enum); debug_assert(JS_DefineProperty(cx, newObj, _propname, OBJECT_TO_JSVAL(nsobj), NULL, NULL, flags)); )
#define DECLARE_ERROR(x) extern PS_RESULT x
#define DEFINE_ERROR(x, y) PS_RESULT x=y
#define ERROR_GROUP(a) class PSERROR_##a : public PSERROR {}; extern const PSRETURN MASK__PSRETURN_##a; extern const PSRETURN CODE__PSRETURN_##a
#define ERROR_IS(a, b) ( ((a) & MASK__PSRETURN_##b) == CODE__PSRETURN_##b )
#define ERROR_SUBGROUP(a, b) class PSERROR_##a##_##b : public PSERROR_##a {}; extern const PSRETURN MASK__PSRETURN_##a##_##b; extern const PSRETURN CODE__PSRETURN_##a##_##b
#define ERROR_TYPE(a, b) class PSERROR_##a##_##b : public PSERROR_##a { public: PSRETURN getCode() const; }; extern const PSRETURN MASK__PSRETURN_##a##_##b; extern const PSRETURN CODE__PSRETURN_##a##_##b; extern const PSRETURN PSRETURN_##a##_##b
#define FUNC_IMPL_CAST_GETDOUBLE(func_name, type) bool CParserValue::func_name(type &ret) { double d; if (GetDouble(d)) return ret = (type)d, true; else return false; }
#define FUNC_IMPL_GETARG(func_name, get_name, type) bool CParserLine::func_name(size_t arg, type &ret) { if (GetArgCount() <= arg) return false; return m_Arguments[arg].get_name(ret); }
#define LDR_CHECK_TIMEOUT(completed_jobs, total_jobsif(get_time(> end_time{int) progress_percent = ((completed_jobs)*100 / (total_jobs));if(progress_percent == 0)progress_percent = 1;debug_assert(0 < progress_percent && progress_percent <= 100);return progress_percent;}
#define LOCK_MUTEX(_mutex) pthread_mutex_lock(_mutex)
#define NUM_TYPE(T) CStr::CStr(T Number) { std::tstringstream ss; ss << Number; ss >> *this; } CStr& CStr::operator=(T Number) { std::tstringstream ss; ss << Number; ss >> *this; return *this; }
#define PROFILE(name) CProfileSample __profile( name )
#define PROFILE_END(name) }
#define PROFILE_START(name) { CProfileSample __profile( name )
#define ucs2le_to_wchart(ptr) (wchar_t)(*ptr);
#define UNLOCK_MUTEX(_mutex) pthread_mutex_unlock(_mutex)
|
0 A.D.
Generated on September 04, 2007 at 18:13 CppDoc v2.4.0 |
|||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |