Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

ps
(ps globals)

   in CConsole.h
   in CLogger.h
   in ConfigDB.h
   in CStr.h
   in DllLoader.h
   in Errors.h
   in FilePacker.h
   in FileUnpacker.h
   in Font.h
   in Game.h
   in GameAttributes.h
   in GameRecord.h
   in Interact.h
   in KeyName.h
   in Loader.h
   in Overlay.h
   in Parser.h
   in Player.h
   in Profile.h
   in ProfileViewer.h
   in Pyrogenesis.h
   in Singleton.h
   in ThreadUtil.h
   in UniDoubler.h
   in utf16string.h
   in Vector2D.h
   in World.h
   in CVFSFile.h
   in DllLoader.h
   in Errors.h
   in FilePacker.h
   in FileUnpacker.h
   in Hotkey.h
   in Interact.h
   in LoaderThunks.h
   in World.h
   in ConfigDB.cpp
   in CStr.cpp
   in Parser.cpp
   in Profile.cpp
   in StringConvert.cpp
   in CConsole.cpp
   in CLogger.cpp
   in CStr.cpp
   in DllLoader.cpp
   in Errors.cpp
   in Font.cpp
   in Game.cpp
   in Globals.cpp
   in Hotkey.cpp
   in i18n.cpp
   in Interact.cpp
   in KeyName.cpp
   in Loader.cpp
   in Parser.cpp
   in Player.cpp
   in Profile.cpp
   in Pyrogenesis.cpp
   in Util.cpp
   in World.cpp

(ps globals)


Field Summary
 BlackHoleStreamBuf blackHoleStreamBuf
          See CLogger.cpp
 const PSRETURN CODE__PSRETURN_OK
          See Errors.h
 bool customSelectionMode
          See Interact.cpp
 const char* DefaultFont
          See Font.cpp
 static double estimated_duration_tally
          See Loader.cpp
 static const unsigned char[ 7 ] firstByteMark
          Used by ToUTF8
 bool g_app_has_focus
          See Globals.cpp
 bool g_app_minimized
          See Globals.cpp
 CConsole* g_Console
          ========================================================================= File : CConsole.
 I18n::CLocale_interface* g_CurrentLocale
          See i18n.cpp
 std::string g_CurrentLocaleName
          See i18n.cpp
 CGame* g_Game
          Globally accessible pointer to the CGame object.
 bool[ SDLK_LAST ] g_keys
          See Globals.cpp
 CLightEnv g_LightEnv
          Global light settings.
 CLogger* g_Logger
          See CLogger.cpp
 bool[ 6 ] g_mouse_buttons
          See Globals.cpp
 int g_mouse_x
          See Globals.cpp
 int g_mouse_y
          See Globals.cpp
 static GuiHotkeyMap guiHotkeyMap
          See Hotkey.cpp
 void* const HANDLE_UNAVAILABLE
          See DllLoader.cpp
 const int HK_MAX_KEYCODES
          HK_MAX_KEYCODES: Global maximum number of keycodes, including our "fake" keycodes for mouse buttons and unified modifiers.
 static SHotkeyInfo[] hotkeyInfo
          See Hotkey.cpp
 static KeyMapping[ HK_MAX_KEYCODES ] hotkeyMap
          See Hotkey.cpp
 static GuiMapping[ HK_MAX_KEYCODES ] hotkeyMapGui
          See Hotkey.cpp
 bool[ HOTKEY_LAST ] hotkeys
          See Hotkey.cpp
 const char* html_footer
          See CLogger.cpp
 const char* html_header0
          See CLogger.cpp
 const char* html_header1
          See CLogger.cpp
 static SKeycodeMapping[] keycodeMapping
          See KeyName.cpp
 static std::map< CStr, int > keymap
          See KeyName.cpp
 static LoadRequests load_requests
          See Loader.cpp
 const PSRETURN MASK__PSRETURN_OK
          See Errors.h
 const int MOUSE_LEFT
          See KeyName.cpp
 const int MOUSE_MIDDLE
          See KeyName.cpp
 const int MOUSE_RIGHT
          See KeyName.cpp
 const int MOUSE_WHEELDOWN
          See KeyName.cpp
 const int MOUSE_WHEELUP
          See KeyName.cpp
 static const u32[ 6 ] offsetsFromUTF8
          Used by FromUTF8
 const int ORDER_DELAY
          See Interact.cpp
 static const char* prefix
          See DllLoader.cpp
 const PSRETURN PSRETURN_OK
          See Errors.h
 static NextNumberedFilenameInfo screenshot_nfi
          See Util.cpp
 const int SDL_GUIHOTKEYPRESS
          See Hotkey.h
 const int SDL_HOTKEYDOWN
          See Hotkey.h
 const int SDL_HOTKEYUP
          See Hotkey.h
 static const double SELECT_DBLCLICK_RATE
          See Interact.cpp
  state
          See Loader.cpp
 static const char* suffix
          See DllLoader.cpp
 static double task_elapsed_time
          See Loader.cpp
 static double total_estimated_duration
          See Loader.cpp
 static const char[ 256 ] trailingBytesForUTF8
          Used by FromUTF8
 static const wchar_t* translate_no_mem
          See Pyrogenesis.cpp
 static bool[ 5 ] unified
          See Hotkey.cpp
 const int UNIFIED_ALT
          See KeyName.cpp
 const int UNIFIED_CTRL
          See KeyName.cpp
 const int UNIFIED_META
          See KeyName.cpp
 const int UNIFIED_SHIFT
          See KeyName.cpp
 const int UNIFIED_SUPER
          See KeyName.cpp
 
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
 
Symbol Summary
 #define _istspace isspace
          See CStr.cpp
 #define _ThreadUtil_h
          See ThreadUtil.h
 #define _totlower tolower
          See CStr.cpp
 #define _totupper toupper
          See CStr.cpp
 #define _tstod strtod
          See CStr.cpp
 #define _ttoi atoi
          See CStr.cpp
 #define _ttol atol
          See CStr.cpp
 #define _UNICODE
          See UniDoubler.h
 #define CONSOLE_BUFFER_SIZE 1024
          See CConsole.h
 #define CONSOLE_MESSAGE_SIZE 1024
          See CConsole.h
 #define CStr CStr8
          See UniDoubler.h
 #define CStr_CPP_FIRST
          See CStr.cpp
 #define CSTR_H_A
          See CStr.h
 #define CSTR_H_U
          See CStr.h
 #define CStr_hash_compare CStr8_hash_compare
          See UniDoubler.h
 #define END_DYNAMIC '>'
          See Parser.cpp
 #define END_OPTIONAL ']'
          See Parser.cpp
 #define ERROR_GROUP_FILE_DEFINED
          See FileUnpacker.h
 #define ERROR_GROUP_GAME_DEFINED
          See World.h
 #define g_BuildingPlacer CBuildingPlacer::GetSingleton()
          See Interact.h
 #define g_ConfigDB CConfigDB::GetSingleton()
          See ConfigDB.h
 #define g_GameAttributes CGameAttributes::GetSingleton()
          See GameAttributes.h
 #define g_Mouseover CMouseoverEntities::GetSingleton()
          See Interact.h
 #define g_Profiler CProfileManager::GetSingleton()
          See Profile.h
 #define g_ProfileViewer CProfileViewer::GetSingleton()
          See ProfileViewer.h
 #define g_Selection CSelectedEntities::GetSingleton()
          See Interact.h
 #define GLIBC_MALLOC_HOOK
          See Profile.cpp
 #define IN_UNIDOUBLER
          See UniDoubler.h
 #define INCLUDED_CCONSOLE
          See CConsole.h
 #define INCLUDED_CLOGGER
          See CLogger.h
 #define INCLUDED_CONFIGDB
          See ConfigDB.h
 #define INCLUDED_CSTR
          See CStr.h
 #define INCLUDED_DLLLOADER
          See DllLoader.h
 #define INCLUDED_ERRORS
          See Errors.h
 #define INCLUDED_FILEPACKER
          See FilePacker.h
 #define INCLUDED_FILEUNPACKER
          See FileUnpacker.h
 #define INCLUDED_FONT
          See Font.h
 #define INCLUDED_GAME
          File : Game.
 #define INCLUDED_GAMEATTRIBUTES
          See GameAttributes.h
 #define INCLUDED_GAMERECORD
          See GameRecord.h
 #define INCLUDED_KEYNAME
          See KeyName.h
 #define INCLUDED_LOADER
          See Loader.h
 #define INCLUDED_OVERLAY
          See Overlay.h
 #define INCLUDED_PARSER
          See Parser.h
 #define INCLUDED_PLAYER
          See Player.h
 #define INCLUDED_PROFILE
          See Profile.h
 #define INCLUDED_PROFILE_VIEWER
          See ProfileViewer.h
 #define INCLUDED_PYROGENESIS
          See Pyrogenesis.h
 #define INCLUDED_SINGLETON
          See Singleton.h
 #define INCLUDED_UTF16STRING
          See utf16string.h
 #define INCLUDED_VECTOR2D
          See Vector2D.h
 #define INCLUDED_WORLD
          File : World.
 #define LOG (g_Logger->Log)
          See CLogger.h
 #define LOG_ONCE (g_Logger->LogOnce)
          See CLogger.h
 #define MAX_BOOKMARKS 10
          See Interact.h
 #define MAX_GROUPS 20
          See Interact.h
 #define MICROLOG debug_wprintf_mem
          See Pyrogenesis.h
 #define PROFILE_AMORTIZE
          See Profile.h
 #define PROFILE_AMORTIZE_FRAMES 50
          See Profile.h
 #define PS_MAX_PLAYERS 8
          Default player limit (not counting the Gaia player) This may be overridden by system.
 #define REGULAR_EXPRESSION '$'
          See Parser.cpp
 #define REGULAR_MAX_LENGTH 10
          See Parser.cpp
 #define START_DYNAMIC '<'
          See Parser.cpp
 #define START_OPTIONAL '['
          See Parser.cpp
 #define tchar char
          See UniDoubler.h
 #define tstring string
          See UniDoubler.h
 #define tstringstream stringstream
          See CStr.cpp
 #define UNIDOUBLER_HEADER "CStr.h"
          See CStr.h
 
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 blackHoleStreamBuf;
See CLogger.cpp.

CODE__PSRETURN_OK

 const PSRETURN CODE__PSRETURN_OK;
See Errors.h.

customSelectionMode

 bool customSelectionMode;
See Interact.cpp.

DefaultFont

 const char* DefaultFont;
See Font.cpp.

estimated_duration_tally

 static double estimated_duration_tally;
See Loader.cpp.

firstByteMark

 static const unsigned char firstByteMark[ 7 ];
Used by ToUTF8
See CStr.cpp.

g_app_has_focus

 bool g_app_has_focus;
See Globals.cpp.

g_app_minimized

 bool g_app_minimized;
See Globals.cpp.

g_Console

 CConsole* g_Console;
========================================================================= File : CConsole.cpp Project : 0 A.D. Description : Implements the in-game console with scripting support. =========================================================================
See CConsole.cpp.

g_CurrentLocale

 I18n::CLocale_interface* g_CurrentLocale;
See i18n.cpp.

g_CurrentLocaleName

 std::string g_CurrentLocaleName;
See i18n.cpp.

g_Game

 CGame* g_Game;
Globally accessible pointer to the CGame object.
See Game.cpp.

g_keys

 bool g_keys[ SDLK_LAST ];
See Globals.cpp.

g_LightEnv

 CLightEnv g_LightEnv;
Global light settings. It is not a member of CWorld because it is passed to the renderer before CWorld exists.
See World.cpp.

g_Logger

 CLogger* g_Logger;
See CLogger.cpp.

g_mouse_buttons

 bool g_mouse_buttons[ 6 ];
See Globals.cpp.

g_mouse_x

 int g_mouse_x;
See Globals.cpp.

g_mouse_y

 int g_mouse_y;
See Globals.cpp.

guiHotkeyMap

 static GuiHotkeyMap guiHotkeyMap;
See Hotkey.cpp.

HANDLE_UNAVAILABLE

 void* const HANDLE_UNAVAILABLE;
See DllLoader.cpp.

HK_MAX_KEYCODES

 const int HK_MAX_KEYCODES;
HK_MAX_KEYCODES: Global maximum number of keycodes, including our "fake" keycodes for mouse buttons and unified modifiers.
See Hotkey.cpp.

hotkeyInfo

 static SHotkeyInfo hotkeyInfo[];
See Hotkey.cpp.

hotkeyMap

 static KeyMapping hotkeyMap[ HK_MAX_KEYCODES ];
See Hotkey.cpp.

hotkeyMapGui

 static GuiMapping hotkeyMapGui[ HK_MAX_KEYCODES ];
See Hotkey.cpp.

hotkeys

 bool hotkeys[ HOTKEY_LAST ];
See Hotkey.cpp.

html_footer

 const char* html_footer;
See CLogger.cpp.

html_header0

 const char* html_header0;
See CLogger.cpp.

html_header1

 const char* html_header1;
See CLogger.cpp.

keycodeMapping

 static SKeycodeMapping keycodeMapping[];
See KeyName.cpp.

keymap

 static std::map< CStr, int > keymap;
See KeyName.cpp.

load_requests

 static LoadRequests load_requests;
See Loader.cpp.

MASK__PSRETURN_OK

 const PSRETURN MASK__PSRETURN_OK;
See Errors.h.

MOUSE_LEFT

 const int MOUSE_LEFT;
See KeyName.cpp.

MOUSE_MIDDLE

 const int MOUSE_MIDDLE;
See KeyName.cpp.

MOUSE_RIGHT

 const int MOUSE_RIGHT;
See KeyName.cpp.

MOUSE_WHEELDOWN

 const int MOUSE_WHEELDOWN;
See KeyName.cpp.

MOUSE_WHEELUP

 const int MOUSE_WHEELUP;
See KeyName.cpp.

offsetsFromUTF8

 static const u32 offsetsFromUTF8[ 6 ];
Used by FromUTF8
See CStr.cpp.

ORDER_DELAY

 const int ORDER_DELAY;
See Interact.cpp.

prefix

 static const char* prefix;
See DllLoader.cpp.

PSRETURN_OK

 const PSRETURN PSRETURN_OK;
See Errors.h.

screenshot_nfi

 static NextNumberedFilenameInfo screenshot_nfi;
See Util.cpp.

SDL_GUIHOTKEYPRESS

 const int SDL_GUIHOTKEYPRESS;
See Hotkey.h.

SDL_HOTKEYDOWN

 const int SDL_HOTKEYDOWN;
See Hotkey.h.

SDL_HOTKEYUP

 const int SDL_HOTKEYUP;
See Hotkey.h.

SELECT_DBLCLICK_RATE

 static const double SELECT_DBLCLICK_RATE;
See Interact.cpp.

state

  state;
See Loader.cpp.

suffix

 static const char* suffix;
See DllLoader.cpp.

task_elapsed_time

 static double task_elapsed_time;
See Loader.cpp.

total_estimated_duration

 static double total_estimated_duration;
See Loader.cpp.

trailingBytesForUTF8

 static const char trailingBytesForUTF8[ 256 ];
Used by FromUTF8
See CStr.cpp.

translate_no_mem

 static const wchar_t* translate_no_mem;
See Pyrogenesis.cpp.

unified

 static bool unified[ 5 ];
See Hotkey.cpp.

UNIFIED_ALT

 const int UNIFIED_ALT;
See KeyName.cpp.

UNIFIED_CTRL

 const int UNIFIED_CTRL;
See KeyName.cpp.

UNIFIED_META

 const int UNIFIED_META;
See KeyName.cpp.

UNIFIED_SHIFT

 const int UNIFIED_SHIFT;
See KeyName.cpp.

UNIFIED_SUPER

 const int UNIFIED_SUPER;
See KeyName.cpp.


Method Detail

_IsStrictNameChar

 static bool _IsStrictNameChar( const char& c );
See Parser.cpp.

_IsValueChar

 static bool _IsValueChar( const char& c );
See Parser.cpp.

blackHoleStream

 std::ostream blackHoleStream(& blackHoleStreamBuf );
See CLogger.cpp.

cat_atow

 static void cat_atow( FILE* out, const char* in_filename );
See Pyrogenesis.cpp.

conInputHandler

 InReaction conInputHandler( const SDL_Event_* ev );
See CConsole.cpp.

ControllerPredicate

 static bool ControllerPredicate( CEntity* entity, void* userdata );
See Player.cpp.

DEFINE_ERROR

 DEFINE_ERROR( PS_FAIL,"Fail" );
See Pyrogenesis.cpp.

DEFINE_ERROR

 DEFINE_ERROR( PS_OK,"OK" );
See Pyrogenesis.cpp.

ERROR_GROUP

 ERROR_GROUP( Game );
File : World.h Project : engine Description : Contains the CWorld Class which contains all the entities and represents them at a specific moment in time.
See World.h.

ERROR_GROUP

 ERROR_GROUP( File );
========================================================================= File : FilePacker.h Project : 0 A.D. Description : Resizable buffer, for writing binary files =========================================================================
See FilePacker.h.

ERROR_GROUP

 ERROR_GROUP( DllLoader );
See DllLoader.h.

ERROR_GROUP

 ERROR_GROUP( CVFSFile );
See CVFSFile.h.

ERROR_SUBGROUP

 ERROR_SUBGROUP( Game, World );
See World.h.

ERROR_TYPE

 ERROR_TYPE( File, InvalidVersion );
See FileUnpacker.h.

ERROR_TYPE

 ERROR_TYPE( File, OpenFailed );
See FilePacker.h.

ERROR_TYPE

 ERROR_TYPE( DllLoader, SymbolNotFound );
See DllLoader.h.

ERROR_TYPE

 ERROR_TYPE( File, WriteFailed );
CFilePacker: class to assist in writing of binary files. basically a resizeable buffer that allows adding raw data and strings; upon calling Write(), everything is written out to disk.
See FilePacker.h.

ERROR_TYPE

 ERROR_TYPE( CVFSFile, AlreadyLoaded );
See CVFSFile.h.

ERROR_TYPE

 ERROR_TYPE( CVFSFile, LoadFailed );
See CVFSFile.h.

ERROR_TYPE

 ERROR_TYPE( File, InvalidType );
See FileUnpacker.h.

ERROR_TYPE

 ERROR_TYPE( File, ReadFailed );
See FileUnpacker.h.

ERROR_TYPE

 ERROR_TYPE( File, UnexpectedEOF );
CFileUnpacker: class to assist in reading of binary files
See FileUnpacker.h.

ERROR_TYPE

 ERROR_TYPE( CVFSFile, InvalidBufferAccess );
See CVFSFile.h.

ERROR_TYPE

 ERROR_TYPE( Game_World, MapLoadFailed );
See World.h.

ERROR_TYPE

 ERROR_TYPE( DllLoader, DllNotLoaded );
See DllLoader.h.

ErrorString

 const wchar_t* ErrorString( int err );
See Util.cpp.

FindKeyCode

 int FindKeyCode( const CStr& keyname );
See KeyName.cpp.

FindKeyName

 CStr FindKeyName( int keycode );
See KeyName.cpp.

FireWorldClickEvent

 void FireWorldClickEvent( uint button, int clicks );
See Interact.cpp.

get_memory_alloc_count

 static long get_memory_alloc_count();
See Profile.cpp.

GetErrorString

 const char* GetErrorString( const PSERROR& err );
See Errors.cpp.

GetErrorString

 const char* GetErrorString( PSRETURN code );
See Errors.cpp.

GlobalsInputHandler

 InReaction GlobalsInputHandler( const SDL_Event_* ev );
See Globals.cpp.

HardcodedErrorString

 static const wchar_t* HardcodedErrorString( int err );
See Util.cpp.

HaveTimeForNextTask

 static bool HaveTimeForNextTask( double time_left, double time_budget, int estimated_duration_ms );
See Loader.cpp.

HotkeyInputHandler

 InReaction HotkeyInputHandler( const SDL_Event_* ev );
See Hotkey.cpp.

HotkeyIsPressed

 bool HotkeyIsPressed( const CStr& keyname );
See Hotkey.cpp.

HotkeyRegisterGuiObject

 void HotkeyRegisterGuiObject( const CStr& objName, const CStr& hotkeyName );
See Hotkey.cpp.

HotkeyRespondsTo

 bool HotkeyRespondsTo( int hotkey, int sdlkey );
See Hotkey.cpp.

InitKeyNameMap

 void InitKeyNameMap();
See KeyName.cpp.

InteractInputHandler

 InReaction InteractInputHandler( const SDL_Event_* ev );
See Interact.cpp.

isLegalUTF8

 static bool isLegalUTF8( const unsigned char* source, int Length );
Test for valid UTF-8 string
Parameters:
const - unsigned char * source pointer to string to test.
int - Length of string to test.
Returns:
bool true if source string is legal UTF-8, false if not.
See CStr.cpp.

IsMouseoverType

 bool IsMouseoverType( CEntity* e, void* UNUSED( userdata ) );
See Interact.cpp.

IsOnScreen

 bool IsOnScreen( CEntity* e, void* UNUSED( userdata ) );
See Interact.cpp.

isUnprintableChar

 static bool isUnprintableChar( SDL_keysym key );
See CConsole.cpp.

LDR_BeginRegistering

 LibError LDR_BeginRegistering();
See Loader.cpp.

LDR_Cancel

 LibError LDR_Cancel();
See Loader.cpp.

LDR_EndRegistering

 LibError LDR_EndRegistering();
See Loader.cpp.

LDR_NonprogressiveLoad

 LibError LDR_NonprogressiveLoad();
See Loader.cpp.

LDR_ProgressiveLoad

 LibError LDR_ProgressiveLoad( double time_budget, wchar_t* description, size_t max_chars, int* progress_percent );
See Loader.cpp.

LDR_Register

 LibError LDR_Register( LoadFunc func, void* param, const wchar_t* description, int estimated_duration_ms );
See Loader.cpp.

ldr_was_interrupted

 static bool ldr_was_interrupted( int ret );
See LoaderThunks.h.

LoadHotkeys

 void LoadHotkeys();
See Hotkey.cpp.

LoadUnitUIThunk

 static void LoadUnitUIThunk( const char* path, const DirEnt* UNUSED( ent ), void* context );
See Interact.cpp.

MemFun1Thunk

 template< class T, class Arg > static int MemFun1Thunk( void* param, double UNUSED( time_left ) );
See LoaderThunks.h.

MemFunThunk

 template< class T > static int MemFunThunk( void* param, double UNUSED( time_left ) );
See LoaderThunks.h.

MouseButtonUpHandler

 void MouseButtonUpHandler( const SDL_Event_* ev, int clicks );
See Interact.cpp.

nullLogger

 CLogger nullLogger(& blackHoleStream,& blackHoleStream, false );
See CLogger.cpp.

psBundleLogs

 void psBundleLogs( FILE* f );
See Pyrogenesis.cpp.

psGetLogDir

 const char* psGetLogDir();
See Pyrogenesis.cpp.

psTranslate

 const wchar_t* psTranslate( const wchar_t* text );
See Pyrogenesis.cpp.

psTranslateFree

 void psTranslateFree( const wchar_t* text );
See Pyrogenesis.cpp.

RegMemFun

 template< class T > void RegMemFun( T* this_, int( T::* func )( void ), const wchar_t* description, int estimated_duration_ms );
See LoaderThunks.h.

RegMemFun1

 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.

ResetInteraction

 void ResetInteraction();
See Interact.cpp.

setBindings

 static void setBindings( const CStr& hotkeyName, int integerMapping =-1 );
See Hotkey.cpp.

SplitExts

 static std::string SplitExts( const char* exts );
See Util.cpp.

StartCustomSelection

 void StartCustomSelection();
See Interact.cpp.

ThrowError

 void ThrowError( PSRETURN code );
See Errors.cpp.

WriteBigScreenshot

 void WriteBigScreenshot( const char* extension, int tiles );
See Util.cpp.

WriteScreenshot

 void WriteScreenshot( const char* extension );
See Util.cpp.

WriteSystemInfo

 void WriteSystemInfo();
See Util.cpp.


Symbol Detail

_istspace

 #define _istspace isspace
See CStr.cpp.

_ThreadUtil_h

 #define _ThreadUtil_h 
See ThreadUtil.h.

_totlower

 #define _totlower tolower
See CStr.cpp.

_totupper

 #define _totupper toupper
See CStr.cpp.

_tstod

 #define _tstod strtod
See CStr.cpp.

_ttoi

 #define _ttoi atoi
See CStr.cpp.

_ttol

 #define _ttol atol
See CStr.cpp.

_UNICODE

 #define _UNICODE 
See UniDoubler.h.

CONSOLE_BUFFER_SIZE

 #define CONSOLE_BUFFER_SIZE 1024 
See CConsole.h.

CONSOLE_MESSAGE_SIZE

 #define CONSOLE_MESSAGE_SIZE 1024 
See CConsole.h.

CStr

 #define CStr CStr8
See UniDoubler.h.

CStr_CPP_FIRST

 #define CStr_CPP_FIRST 
See CStr.cpp.

CSTR_H_A

 #define CSTR_H_A 
See CStr.h.

CSTR_H_U

 #define CSTR_H_U 
See CStr.h.

CStr_hash_compare

 #define CStr_hash_compare CStr8_hash_compare
See UniDoubler.h.

END_DYNAMIC

 #define END_DYNAMIC '>'
See Parser.cpp.

END_OPTIONAL

 #define END_OPTIONAL ']'
See Parser.cpp.

ERROR_GROUP_FILE_DEFINED

 #define ERROR_GROUP_FILE_DEFINED 
See FileUnpacker.h.

ERROR_GROUP_GAME_DEFINED

 #define ERROR_GROUP_GAME_DEFINED 
See World.h.

g_BuildingPlacer

 #define g_BuildingPlacer CBuildingPlacer::GetSingleton()
See Interact.h.

g_ConfigDB

 #define g_ConfigDB CConfigDB::GetSingleton()
See ConfigDB.h.

g_GameAttributes

 #define g_GameAttributes CGameAttributes::GetSingleton()
See GameAttributes.h.

g_Mouseover

 #define g_Mouseover CMouseoverEntities::GetSingleton()
See Interact.h.

g_Profiler

 #define g_Profiler CProfileManager::GetSingleton()
See Profile.h.

g_ProfileViewer

 #define g_ProfileViewer CProfileViewer::GetSingleton()
See ProfileViewer.h.

g_Selection

 #define g_Selection CSelectedEntities::GetSingleton()
See Interact.h.

GLIBC_MALLOC_HOOK

 #define GLIBC_MALLOC_HOOK 
See Profile.cpp.

IN_UNIDOUBLER

 #define IN_UNIDOUBLER 
See UniDoubler.h.

INCLUDED_CCONSOLE

 #define INCLUDED_CCONSOLE 
See CConsole.h.

INCLUDED_CLOGGER

 #define INCLUDED_CLOGGER 
See CLogger.h.

INCLUDED_CONFIGDB

 #define INCLUDED_CONFIGDB 
See ConfigDB.h.

INCLUDED_CSTR

 #define INCLUDED_CSTR 
See CStr.h.

INCLUDED_DLLLOADER

 #define INCLUDED_DLLLOADER 
See DllLoader.h.

INCLUDED_ERRORS

 #define INCLUDED_ERRORS 
See Errors.h.

INCLUDED_FILEPACKER

 #define INCLUDED_FILEPACKER 
See FilePacker.h.

INCLUDED_FILEUNPACKER

 #define INCLUDED_FILEUNPACKER 
See FileUnpacker.h.

INCLUDED_FONT

 #define INCLUDED_FONT 
See Font.h.

INCLUDED_GAME

 #define INCLUDED_GAME 
File : Game.h Project : engine Description : Contains the CGame Class which is a representation of the game itself.
See Game.h.

INCLUDED_GAMEATTRIBUTES

 #define INCLUDED_GAMEATTRIBUTES 
See GameAttributes.h.

INCLUDED_GAMERECORD

 #define INCLUDED_GAMERECORD 
See GameRecord.h.

INCLUDED_KEYNAME

 #define INCLUDED_KEYNAME 
See KeyName.h.

INCLUDED_LOADER

 #define INCLUDED_LOADER 
See Loader.h.

INCLUDED_OVERLAY

 #define INCLUDED_OVERLAY 
See Overlay.h.

INCLUDED_PARSER

 #define INCLUDED_PARSER 
See Parser.h.

INCLUDED_PLAYER

 #define INCLUDED_PLAYER 
See Player.h.

INCLUDED_PROFILE

 #define INCLUDED_PROFILE 
See Profile.h.

INCLUDED_PROFILE_VIEWER

 #define INCLUDED_PROFILE_VIEWER 
See ProfileViewer.h.

INCLUDED_PYROGENESIS

 #define INCLUDED_PYROGENESIS 
See Pyrogenesis.h.

INCLUDED_SINGLETON

 #define INCLUDED_SINGLETON 
See Singleton.h.

INCLUDED_UTF16STRING

 #define INCLUDED_UTF16STRING 
See utf16string.h.

INCLUDED_VECTOR2D

 #define INCLUDED_VECTOR2D 
See Vector2D.h.

INCLUDED_WORLD

 #define INCLUDED_WORLD 
File : World.h Project : engine Description : Contains the CWorld Class which contains all the entities and represents them at a specific moment in time.
See World.h.

LOG

 #define LOG (g_Logger->Log)
See CLogger.h.

LOG_ONCE

 #define LOG_ONCE (g_Logger->LogOnce)
See CLogger.h.

MAX_BOOKMARKS

 #define MAX_BOOKMARKS 10
See Interact.h.

MAX_GROUPS

 #define MAX_GROUPS 20
See Interact.h.

MICROLOG

 #define MICROLOG debug_wprintf_mem
See Pyrogenesis.h.

PROFILE_AMORTIZE

 #define PROFILE_AMORTIZE 
See Profile.h.

PROFILE_AMORTIZE_FRAMES

 #define PROFILE_AMORTIZE_FRAMES 50
See Profile.h.

PS_MAX_PLAYERS

 #define PS_MAX_PLAYERS 8
Default player limit (not counting the Gaia player) This may be overridden by system.cfg ("max_players")
See Game.h.

REGULAR_EXPRESSION

 #define REGULAR_EXPRESSION '$'
See Parser.cpp.

REGULAR_MAX_LENGTH

 #define REGULAR_MAX_LENGTH 10
See Parser.cpp.

START_DYNAMIC

 #define START_DYNAMIC '<'
See Parser.cpp.

START_OPTIONAL

 #define START_OPTIONAL '['
See Parser.cpp.

tchar

 #define tchar char
See UniDoubler.h.

tstring

 #define tstring string
See UniDoubler.h.

tstringstream

 #define tstringstream stringstream
See CStr.cpp.

UNIDOUBLER_HEADER

 #define UNIDOUBLER_HEADER "CStr.h"
See CStr.h.


Macro Detail

_T

 #define _T(t) t
See UniDoubler.h.

CFG_GET_SYS_VAL

 #define CFG_GET_SYS_VAL(name, type, destinationSTMT(CConfigValue* val = g_ConfigDB.GetValue(CFG_SYSTEM, name;if(valval->Get##type(destination;) 
See ConfigDB.h.

CFG_GET_USER_VAL

 #define CFG_GET_USER_VAL(name, type, destinationSTMT(CConfigValue* val = g_ConfigDB.GetValue(CFG_USER, name;if(valval->Get##type(destination;) 
See ConfigDB.h.

cfg_ns

 #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.

DECLARE_ERROR

 #define DECLARE_ERROR(x) extern PS_RESULT x
See Pyrogenesis.h.

DEFINE_ERROR

 #define DEFINE_ERROR(x, y) PS_RESULT x=y
See Pyrogenesis.h.

ERROR_GROUP

 #define ERROR_GROUP(a) class PSERROR_##a : public PSERROR {}; extern const PSRETURN MASK__PSRETURN_##a; extern const PSRETURN CODE__PSRETURN_##a
See Errors.h.

ERROR_IS

 #define ERROR_IS(a, b) ( ((a) & MASK__PSRETURN_##b) == CODE__PSRETURN_##b )
See Errors.h.

ERROR_SUBGROUP

 #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.

ERROR_TYPE

 #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.

FUNC_IMPL_CAST_GETDOUBLE

 #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.

FUNC_IMPL_GETARG

 #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.

LDR_CHECK_TIMEOUT

 #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;}
See Loader.h.

LOCK_MUTEX

 #define LOCK_MUTEX(_mutex) pthread_mutex_lock(_mutex)
See ThreadUtil.h.

NUM_TYPE

 #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.

PROFILE

 #define PROFILE(name) CProfileSample __profile( name )
See Profile.h.

PROFILE_END

 #define PROFILE_END(name) }
See Profile.h.

PROFILE_START

 #define PROFILE_START(name) { CProfileSample __profile( name )
See Profile.h.

ucs2le_to_wchart

 #define ucs2le_to_wchart(ptr) (wchar_t)(*ptr);
See StringConvert.cpp.

UNLOCK_MUTEX

 #define UNLOCK_MUTEX(_mutex) pthread_mutex_unlock(_mutex)
See ThreadUtil.h.

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD