#include <research.h>
Inheritance diagram for TechDependency:

Public Types | |
| typedef Loki::Functor< bool, TYPELIST_1(int) | CheckTechAvailabilityFunctor ) |
Public Member Functions | |
| TechDependency () | |
| bool | available (const Research &research) const |
| ResearchAvailabilityStatus | available (CheckTechAvailabilityFunctor checkTechAvailability) const |
| bool | eventually_available (const Research &res, list< const Technology * > *dependencies) const |
| this will recursively scan through the tech tree to check if this item will be available sometime. | |
| bool | eventually_available (const Research &res, list< const Technology * > *dependencies, list< int > &stack) const |
| ASCString | showDebug (const Research &research) const |
| void | read (tnstream &stream) |
| void | write (tnstream &stream) const |
| void | runTextIO (PropertyContainer &pc) |
| bool | empty () const |
| void | writeTreeOutput (const ASCString &sourceTechName, tnstream &stream, bool reduce) const |
| outputs the dependencies in text format for processing by GraphViz | |
| void | writeInvertTreeOutput (const Technology *tech, tnstream &stream, vector< int > &history, vector< pair< int, int > > &blockedPrintList, const vector< IntRange > *onlyWithBaseTechs=NULL) const |
| void | writeInvertTreeOutput (const ASCString techName, tnstream &stream, vector< int > &history, vector< pair< int, int > > &blockedPrintList, const vector< IntRange > *onlyWithBaseTechs=NULL) const |
| int | findInheritanceLevel (int id, vector< int > &stack, const ASCString &sourceTechName) const |
|
|
Definition at line 60 of file research.h. |
|
|
Definition at line 57 of file research.h. |
|
|
Definition at line 66 of file research.cpp. References Available, NeverAvailable, and UnavailableNow. |
|
|
Definition at line 61 of file research.cpp. References Available, and Research::techResearched(). Referenced by TechAdapter::available(), Research::isBlocked(), and Research::techAvailable(). |
|
|
Definition at line 75 of file research.h. |
|
||||||||||||||||
|
Definition at line 104 of file research.cpp. |
|
||||||||||||
|
this will recursively scan through the tech tree to check if this item will be available sometime.
Definition at line 124 of file research.cpp. Referenced by Technology::eventually_available(). |
|
||||||||||||||||
|
Definition at line 132 of file research.cpp. References technologyRepository, and warning(). Referenced by generateTechTree(), writeInvertTreeOutput(), and writeTreeOutput(). |
|
|
Implements LoadableItemType. Definition at line 33 of file research.cpp. References tnstream::getDeviceName(), readClassContainer(), tnstream::readInt(), and techDependencyVersion. Referenced by Technology::read(), and TechAdapter::read(). |
|
|
Implements LoadableItemType. Definition at line 53 of file research.cpp. References PropertyContainer::addBool(), PropertyContainer::addIntRangeArray(), PropertyContainer::find(), and PropertyContainer::isReading(). Referenced by Technology::runTextIO(), and TechAdapter::runTextIO(). |
|
|
Definition at line 333 of file research.cpp. References technologyRepository. Referenced by ChooseTech::showPrerequisites(). |
|
|
Implements LoadableItemType. Definition at line 45 of file research.cpp. References techDependencyVersion, writeClassContainer(), and tnstream::writeInt(). Referenced by Technology::write(), and TechAdapter::write(). |
|
||||||||||||||||||||||||
|
Definition at line 289 of file research.cpp. References findInheritanceLevel(), generateTechName(), technologyRepository, and tnstream::writeString(). |
|
||||||||||||||||||||||||
|
Definition at line 239 of file research.cpp. References findInheritanceLevel(), generateTechLabel(), generateTechName(), Technology::id, technologyRepository, and tnstream::writeString(). |
|
||||||||||||||||
|
outputs the dependencies in text format for processing by GraphViz
Definition at line 175 of file research.cpp. References findInheritanceLevel(), Technology::name, technologyRepository, and tnstream::writeString(). Referenced by generateTechTree(). |
1.4.2