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

simulation
Class CTechnology

IJSComplex
   |
   +--CJSComplex
         |
         +--CTechnology

   in Technology.h
   in Technology.cpp

class CTechnology
extends CJSComplex


Inner Classes, Typedefs, and Enums
struct CTechnology::Modifier
          
 
Field Summary
private CStrW m_Classes
          
private CScriptObject m_effectFunction
          
private bool m_excluded
          
private CStrW m_Generic
          
private CStrW m_History
          
private CStrW m_Icon
          
private int m_IconCell
          
private bool m_inProgress
          
private std::vector< CTechnology::Modifier > m_Modifiers
          
private CStrW m_Name
          
private std::vector< CStr > m_Pairs
          
private CPlayer* m_player
          
private std::vector< CStr > m_ReqEntities
          
private std::vector< CStr > m_ReqTechs
          
private float m_ReqTime
          
private bool m_researched
          
private static STL_HASH_SET< CStr, CStr_hash_compare > m_scriptsLoaded
          
private std::vector< CTechnology::Modifier > m_Sets
          
private CStrW m_Specific
          
private std::vector< CStr > m_Targets
          
   
Fields inherited from class CJSComplex
CJSComplexPropertyAccessor, m_JS, m_Watches, m_Reflectors, JSI_props, m_Methods, m_IntrinsicProperties, JSI_class, m_EngineOwned
   
Fields inherited from class IJSComplex
m_Properties, m_Parent, m_Inheritors
 
Constructor Summary
private  CTechnology( const CTechnology& )
          
  CTechnology( const CStrW& name, CPlayer* player )
          
  ~CTechnology()
          
 
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
   
Methods inherited from class IJSComplex
SetBase, Rebuild, RebuildClassSet, HasProperty, FillEnumerateSet, GetProperty, AddProperty, AddProperty
 

Field Detail

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;


Constructor Detail

CTechnology

private CTechnology( const CTechnology& );

CTechnology

public CTechnology( const CStrW& name, CPlayer* player );

~CTechnology

public ~CTechnology();


Method Detail

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 );

 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