Advanced Strategic Command
Public Types | Public Member Functions | Public Attributes | List of all members
Technology Class Reference

#include <research.h>

Inheritance diagram for Technology:
Inheritance graph
[legend]

Public Types

typedef vector< IntRangeBlockingOtherTechnologies
 

Public Member Functions

 Technology ()
 
bool eventually_available (const Research &res, list< const Technology * > *dependencies) const
 
bool eventually_available (const Research &res, list< const Technology * > *dependencies, list< int > &stack) const
 
void read (tnstream &stream)
 read the binary representation of this item from the given stream More...
 
void write (tnstream &stream) const
 write the binary representation of this item to the given stream More...
 
void runTextIO (PropertyContainer &pc)
 registers the properties of this item for loading/writing into asctxt files More...
 
- Public Member Functions inherited from LoadableItemType
virtual ~LoadableItemType ()
 

Public Attributes

void * icon
 
ASCString infotext
 
int id
 
vector< int > secondaryIDs
 when loading a file and these IDs are encountered, this object will be used. More...
 
int researchpoints
 
ASCString name
 
int techlevel
 
int relatedUnitID
 
bool requireEvent
 
TechDependency techDependency
 
BlockingOtherTechnologies blockingOtherTechnologies
 if this Technology has been researched, it will not be possible to research the technologies given here. Only available for root technologies! More...
 
- Public Attributes inherited from LoadableItemType
ASCString filename
 The name of the file from which the item was loaded. More...
 
ASCString location
 The filename and location on disk (including containerfiles) of the object. More...
 
ASCString archive
 

Detailed Description

Definition at line 123 of file research.h.

Member Typedef Documentation

Definition at line 146 of file research.h.

Constructor & Destructor Documentation

Technology::Technology ( )

Definition at line 500 of file research.cpp.

References icon, requireEvent, researchpoints, and techlevel.

Member Function Documentation

bool Technology::eventually_available ( const Research res,
list< const Technology * > *  dependencies 
) const
bool Technology::eventually_available ( const Research res,
list< const Technology * > *  dependencies,
list< int > &  stack 
) const
void Technology::read ( tnstream stream)
virtual
void Technology::runTextIO ( PropertyContainer pc)
virtual
void Technology::write ( tnstream stream) const
virtual

Member Data Documentation

BlockingOtherTechnologies Technology::blockingOtherTechnologies

if this Technology has been researched, it will not be possible to research the technologies given here. Only available for root technologies!

Definition at line 148 of file research.h.

Referenced by Research::isBlocked(), read(), runTextIO(), and write().

void* Technology::icon

Definition at line 127 of file research.h.

Referenced by Technology().

int Technology::id
ASCString Technology::infotext

Definition at line 128 of file research.h.

Referenced by read(), runTextIO(), ShowNewTechnology::showTechnology(), and write().

ASCString Technology::name
int Technology::relatedUnitID
bool Technology::requireEvent

Definition at line 141 of file research.h.

Referenced by read(), runTextIO(), Technology(), and write().

int Technology::researchpoints
vector<int> Technology::secondaryIDs

when loading a file and these IDs are encountered, this object will be used.

Definition at line 132 of file research.h.

Referenced by read(), runTextIO(), and write().

TechDependency Technology::techDependency
int Technology::techlevel

Definition at line 138 of file research.h.

Referenced by read(), runTextIO(), Research::settechlevel(), techComp(), Technology(), and write().


The documentation for this class was generated from the following files: