Advanced Strategic Command
Classes | Functions
researchexecution.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TechnologyPresenter
 
class  TechnologyPresenter::Gadgets
 
class  SuppressTechPresentation
 

Functions

void setResearchPresenter (TechnologyPresenter *presenter)
 registers the class that will present newly researched technologies to the user More...
 
void dissectvehicle (Vehicle *eht)
 dissects a vehicle; if you haven't researched this vehicle type you will get some research points for it. More...
 
void runResearch (Player &player, vector< const Technology * > *newTechs, vector< ASCString > *newTechAdapter)
 progresses in the current research, automatically chosing technologies towards the research goal. More...
 
void checkForNewResearch (Player &player)
 Let's the user select new technology for research if the current research projects are finished. More...
 

Function Documentation

void checkForNewResearch ( Player player)

Let's the user select new technology for research if the current research projects are finished.

Definition at line 193 of file researchexecution.cpp.

References Research::activetechnology, anyTechAvailable(), chooseSingleTechnology(), Research::progress, and Player::research.

Referenced by chooseTechnologyIfAvail(), and hookGuiToMap().

void dissectvehicle ( Vehicle eht)

dissects a vehicle; if you haven't researched this vehicle type you will get some research points for it.

void runResearch ( Player player,
vector< const Technology * > *  newTechs,
vector< ASCString > *  newTechAdapter 
)

progresses in the current research, automatically chosing technologies towards the research goal.

This function does not generate any research points, it only consumes them. Research points are generated by doresearch()

No user interaction takes place.

Parameters
playerthe player who is researching
nweTechsIf non-Null, add all technologies that have been made available during this call
newTechAdapterIf non-Null, add all TechAdapter that have been activated during this call

Definition at line 153 of file researchexecution.cpp.

References Research::activetechnology, Research::addanytechnology(), anyTechAvailable(), NewGadgetDetection::evaluate(), getNextTechnologyTowardsGoal(), Technology::id, max(), Research::progress, Player::research, Technology::researchpoints, TechnologyPresenter::showTechnology(), and Research::techResearched().

Referenced by __runResearch(), and DirectResearchCommand::go().

void setResearchPresenter ( TechnologyPresenter presenter)

registers the class that will present newly researched technologies to the user

Definition at line 70 of file researchexecution.cpp.

Referenced by gamethread().