simulation
Class CTechnology
IJSComplex
|
+--CJSComplex
|
+--CTechnology
in Technology.h
in Technology.cpp
- class CTechnology
- extends CJSComplex
Method Summary |
void |
Apply( CEntity* entity )
|
bool |
ApplyEffects( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
|
int |
GetPlayerID( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
|
private bool |
HasReqEntities()
|
private bool |
HasReqTechs()
|
bool |
IsExcluded( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
|
bool |
IsResearched( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
|
inline bool |
IsResearched()
|
bool |
IsTechValid()
|
bool |
IsValid( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
|
bool |
LoadElEffect( XMBElement effect, CXeromyces& XeroFile, const CStr& filename )
|
bool |
LoadElId( XMBElement ID, CXeromyces& XeroFile )
|
bool |
LoadElReq( XMBElement Req, CXeromyces& XeroFile )
|
bool |
LoadXml( const CStr& filename )
|
private const CTechnology& |
operator=( const CTechnology& )
|
private void |
RebuildClassSet()
|
static void |
ScriptingInit()
|
void |
SetExclusion( bool exclude )
|
Methods inherited from class CJSComplex |
GetProperty, SetProperty, WatchNotify, JSGetProperty, JSSetProperty, JSEnumerate, SetWatchAll, UnWatchAll, ScriptingInit, ScriptingShutdown, DefaultFinalize, CreateScriptObject, ReleaseScriptObject, GetScript, Shutdown, SetBase, Rebuild, HasProperty, FillEnumerateSet, AddProperty, AddProperty, AddClassProperty, AddMethod, AddClassProperty, AddReadOnlyClassProperty, AddProperty, AddReadOnlyProperty, DeletePreviouslyAssignedProperty |
m_Classes
private CStrW m_Classes;
m_effectFunction
private CScriptObject m_effectFunction;
m_excluded
private bool m_excluded;
m_Generic
private CStrW m_Generic;
m_History
private CStrW m_History;
m_Icon
private CStrW m_Icon;
m_IconCell
private int m_IconCell;
m_inProgress
private bool m_inProgress;
m_Modifiers
private std::vector< CTechnology::Modifier > m_Modifiers;
m_Name
private CStrW m_Name;
m_Pairs
private std::vector< CStr > m_Pairs;
m_player
private CPlayer* m_player;
m_ReqEntities
private std::vector< CStr > m_ReqEntities;
m_ReqTechs
private std::vector< CStr > m_ReqTechs;
m_ReqTime
private float m_ReqTime;
m_researched
private bool m_researched;
m_scriptsLoaded
private static STL_HASH_SET< CStr, CStr_hash_compare > m_scriptsLoaded;
m_Sets
private std::vector< CTechnology::Modifier > m_Sets;
m_Specific
private CStrW m_Specific;
m_Targets
private std::vector< CStr > m_Targets;
CTechnology
private CTechnology( const CTechnology& );
CTechnology
public CTechnology( const CStrW& name, CPlayer* player );
~CTechnology
public ~CTechnology();
Apply
public void Apply( CEntity* entity );
ApplyEffects
public bool ApplyEffects( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );
GetPlayerID
public int GetPlayerID( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );
HasReqEntities
private bool HasReqEntities();
HasReqTechs
private bool HasReqTechs();
IsExcluded
public bool IsExcluded( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );
IsResearched
public bool IsResearched( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );
IsResearched
public inline bool IsResearched();
IsTechValid
public bool IsTechValid();
IsValid
public bool IsValid( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );
LoadElEffect
public bool LoadElEffect( XMBElement effect, CXeromyces& XeroFile, const CStr& filename );
LoadElId
public bool LoadElId( XMBElement ID, CXeromyces& XeroFile );
LoadElReq
public bool LoadElReq( XMBElement Req, CXeromyces& XeroFile );
LoadXml
public bool LoadXml( const CStr& filename );
operator=
private const CTechnology& operator=( const CTechnology& );
RebuildClassSet
private void RebuildClassSet();
ScriptingInit
public static void ScriptingInit();
SetExclusion
public void SetExclusion( bool exclude );