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

ps
Class CGameAttributes

IJSObject
   |
   +--CJSObject, CSynchedJSObjectBase
         |
         +--CSynchedJSObject, Singleton
               |
               +--CGameAttributes

   in GameAttributes.h
   in GameAttributes.cpp

class CGameAttributes
extends CSynchedJSObject, Singleton


Inner Classes, Typedefs, and Enums
typedef CGameAttributes::data
          
 
Field Summary
 bool m_FogOfWar
          
 CStrW m_GameMode
          
 uint m_LOSSetting
          
 CStrW m_MapFile
          
private uint m_NumSlots
          
private std::vector< CPlayer* > m_Players
          
private JSObject* m_PlayerSlotArrayJS
          
private PlayerSlotAssignmentCB* m_PlayerSlotAssignmentCB
          
private void* m_PlayerSlotAssignmentCBData
          
private std::vector< CPlayerSlot* > m_PlayerSlots
          
private CPlayer::UpdateCallback* m_PlayerUpdateCB
          
private void* m_PlayerUpdateCBData
          
 CStrW m_ResourceLevel
          
 bool m_ScreenshotMode
          
 CStrW m_StartingPhase
          
private UpdateCallback* m_UpdateCB
          
private void* m_UpdateCBData
          
   
Fields inherited from class CJSObject
m_NativeProperties, m_NonsharedProperties, m_ScriptProperties, m_EngineOwned, JSI_class
   
Fields inherited from struct CSynchedJSObjectBase
m_SynchedProperties
 
Constructor Summary
CGameAttributes()
          
virtual ~CGameAttributes()
          
 
Method Summary
 void FinalizeSlots()
          
 inline CStrW GetGameMode()
          
 CPlayer* GetPlayer( int id )
          
 CPlayerSlot* GetSlot( int index )
          
 inline uint GetSlotCount()
          
private jsval_t JSI_GetOpenSlot( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
          
private jsval JSI_GetPlayerSlots( JSContext* UNUSED( cx ) )
          
private static void OnNumSlotsUpdate( CSynchedJSObjectBase* owner )
          
private static void ScriptingInit()
          
 void SetPlayerSlotAssignmentCallback( PlayerSlotAssignmentCB* cb, void* userdata )
          
 void SetPlayerUpdateCallback( CPlayer::UpdateCallback* cb, void* userdata )
          
 inline void SetUpdateCallback( UpdateCallback* cb, void* userdata )
          
 void SetValue( const CStrW& name, const CStrW& value )
          
private virtual void Update( const CStrW& name, ISynchedJSProperty* attrib )
          
   
Methods inherited from class CSynchedJSObject
AddSynchedProperty
   
Methods inherited from class Singleton
GetSingleton, GetSingletonPtr, IsInitialised
   
Methods inherited from class CJSObject
ScriptingInit, ScriptingShutdown, GetProperty, SetProperty, HasProperty, AddProperty, AddProperty, AddProperty, AddMethod, AddProperty, AddLocalProperty, GetScript, CreateScriptObject, ReleaseScriptObject, Shutdown
   
Methods inherited from struct CSynchedJSObjectBase
IterateSynchedProperties, GetSynchedProperty, Update
   
Methods inherited from class IJSObject
HasProperty, GetProperty, AddProperty, AddProperty
 

Field Detail

m_FogOfWar

public bool m_FogOfWar;

m_GameMode

public CStrW m_GameMode;

m_LOSSetting

public uint m_LOSSetting;

m_MapFile

public CStrW m_MapFile;

m_NumSlots

private uint m_NumSlots;

m_Players

private std::vector< CPlayer* > m_Players;

m_PlayerSlotArrayJS

private JSObject* m_PlayerSlotArrayJS;

m_PlayerSlotAssignmentCB

private PlayerSlotAssignmentCB* m_PlayerSlotAssignmentCB;

m_PlayerSlotAssignmentCBData

private void* m_PlayerSlotAssignmentCBData;

m_PlayerSlots

private std::vector< CPlayerSlot* > m_PlayerSlots;

m_PlayerUpdateCB

private CPlayer::UpdateCallback* m_PlayerUpdateCB;

m_PlayerUpdateCBData

private void* m_PlayerUpdateCBData;

m_ResourceLevel

public CStrW m_ResourceLevel;

m_ScreenshotMode

public bool m_ScreenshotMode;

m_StartingPhase

public CStrW m_StartingPhase;

m_UpdateCB

private UpdateCallback* m_UpdateCB;

m_UpdateCBData

private void* m_UpdateCBData;


Constructor Detail

CGameAttributes

public CGameAttributes();

~CGameAttributes

public virtual ~CGameAttributes();


Method Detail

FinalizeSlots

public void FinalizeSlots();

GetGameMode

public inline CStrW GetGameMode();

GetPlayer

public CPlayer* GetPlayer( int id );

GetSlot

public CPlayerSlot* GetSlot( int index );

GetSlotCount

public inline uint GetSlotCount();

JSI_GetOpenSlot

private jsval_t JSI_GetOpenSlot( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );

JSI_GetPlayerSlots

private jsval JSI_GetPlayerSlots( JSContext* UNUSED( cx ) );

OnNumSlotsUpdate

private static void OnNumSlotsUpdate( CSynchedJSObjectBase* owner );

ScriptingInit

private static void ScriptingInit();

SetPlayerSlotAssignmentCallback

public void SetPlayerSlotAssignmentCallback( PlayerSlotAssignmentCB* cb, void* userdata );

SetPlayerUpdateCallback

public void SetPlayerUpdateCallback( CPlayer::UpdateCallback* cb, void* userdata );

SetUpdateCallback

public inline void SetUpdateCallback( UpdateCallback* cb, void* userdata );

SetValue

public void SetValue( const CStrW& name, const CStrW& value );

Update

private virtual void Update( const CStrW& name, ISynchedJSProperty* attrib );

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