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

ps
Class CPlayerSlot

IJSObject
   |
   +--CJSObject
         |
         +--CPlayerSlot

   in GameAttributes.h
   in GameAttributes.cpp

class CPlayerSlot
extends CJSObject


Field Summary
private EPlayerSlotAssignment m_Assignment
          
private PlayerSlotAssignmentCB* m_Callback
          
private void* m_CallbackData
          
private CPlayer* m_pPlayer
          
private CNetServerSession* m_pSession
          
private int m_SessionID
          
private int m_SlotID
          
   
Fields inherited from class CJSObject
m_NativeProperties, m_NonsharedProperties, m_ScriptProperties, m_EngineOwned, JSI_class
 
Constructor Summary
CPlayerSlot( int slotID, CPlayer* pPlayer )
          
~CPlayerSlot()
          
 
Method Summary
 void AssignClosed()
          
 void AssignLocal()
          
 void AssignOpen()
          
 void AssignToSession( CNetServerSession* pSession )
          
 void AssignToSessionID( int sessionID )
          
private void CallCallback()
          
 inline EPlayerSlotAssignment GetAssignment()
          
 inline CPlayer* GetPlayer()
          
 inline CNetServerSession* GetSession()
          
 inline int GetSessionID()
          
 inline int GetSlotID()
          
private bool JSI_AssignClosed( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
          
private bool JSI_AssignLocal( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
          
private bool JSI_AssignOpen( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
          
private bool JSI_AssignToSession( JSContext* UNUSED( cx ), uintN argc, jsval* argv )
          
private jsval JSI_GetAssignment( JSContext* UNUSED( cx ) )
          
private jsval JSI_GetSession( JSContext* UNUSED( cx ) )
          
private static void ScriptingInit()
          
private void SetAssignment( EPlayerSlotAssignment assignment, CNetServerSession* pSession, int sessionID )
          
 inline void SetCallback( PlayerSlotAssignmentCB* callback, void* data )
          
protected inline void SetSlotID( int slotID )
          
   
Methods inherited from class CJSObject
ScriptingInit, ScriptingShutdown, GetProperty, SetProperty, HasProperty, AddProperty, AddProperty, AddProperty, AddMethod, AddProperty, AddLocalProperty, GetScript, CreateScriptObject, ReleaseScriptObject, Shutdown
   
Methods inherited from class IJSObject
HasProperty, GetProperty, AddProperty, AddProperty
 

Field Detail

m_Assignment

private EPlayerSlotAssignment m_Assignment;

m_Callback

private PlayerSlotAssignmentCB* m_Callback;

m_CallbackData

private void* m_CallbackData;

m_pPlayer

private CPlayer* m_pPlayer;

m_pSession

private CNetServerSession* m_pSession;

m_SessionID

private int m_SessionID;

m_SlotID

private int m_SlotID;


Constructor Detail

CPlayerSlot

public CPlayerSlot( int slotID, CPlayer* pPlayer );

~CPlayerSlot

public ~CPlayerSlot();


Method Detail

AssignClosed

public void AssignClosed();

AssignLocal

public void AssignLocal();

AssignOpen

public void AssignOpen();

AssignToSession

public void AssignToSession( CNetServerSession* pSession );

AssignToSessionID

public void AssignToSessionID( int sessionID );

CallCallback

private void CallCallback();

GetAssignment

public inline EPlayerSlotAssignment GetAssignment();

GetPlayer

public inline CPlayer* GetPlayer();

GetSession

public inline CNetServerSession* GetSession();

GetSessionID

public inline int GetSessionID();

GetSlotID

public inline int GetSlotID();

JSI_AssignClosed

private bool JSI_AssignClosed( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );

JSI_AssignLocal

private bool JSI_AssignLocal( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );

JSI_AssignOpen

private bool JSI_AssignOpen( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );

JSI_AssignToSession

private bool JSI_AssignToSession( JSContext* UNUSED( cx ), uintN argc, jsval* argv );

JSI_GetAssignment

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

JSI_GetSession

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

ScriptingInit

private static void ScriptingInit();

SetAssignment

private void SetAssignment( EPlayerSlotAssignment assignment, CNetServerSession* pSession, int sessionID );

SetCallback

public inline void SetCallback( PlayerSlotAssignmentCB* callback, void* data );

SetSlotID

protected inline void SetSlotID( int slotID );

 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