#include <Science.h>
Inherits SubsystemInterface.
Definition at line 79 of file Science.h.
◆ ~ScienceStore()
| ScienceStore::~ScienceStore |
( |
| ) |
|
|
virtual |
◆ friend_getScienceNames()
| std::vector< AsciiString > ScienceStore::friend_getScienceNames |
( |
| ) |
const |
◆ friend_lookupScience()
| ScienceType ScienceStore::friend_lookupScience |
( |
const char * | scienceName | ) |
const |
◆ friend_parseScienceDefinition()
| void ScienceStore::friend_parseScienceDefinition |
( |
INI * | ini | ) |
|
|
static |
◆ getInternalNameForScience()
◆ getNameAndDescription()
◆ getPurchasableSciences()
| void ScienceStore::getPurchasableSciences |
( |
const Player * | player, |
|
|
ScienceVec & | purchasable, |
|
|
ScienceVec & | potentiallyPurchasable ) const |
return a list of the sciences the given player can purchase now, and a list he might be able to purchase in the future, but currently lacks prereqs or points for. (either might be an empty list)
Definition at line 325 of file Science.cpp.
◆ getScienceFromInternalName()
◆ getSciencePurchaseCost()
◆ init()
| void ScienceStore::init |
( |
| ) |
|
|
virtual |
- Assign any default values to data required for the class
- Allocate any memory and resources needed throughout the lifetime of the class
Implements SubsystemInterface.
Definition at line 45 of file Science.cpp.
◆ isScienceGrantable()
◆ isValidScience()
◆ playerHasPrereqsForScience()
◆ playerHasRootPrereqsForScience()
this is a subtle call, and should ALMOST NEVER be called by external code... this is used to determine if you have the "root" requirements for a given science, and thus could potentially obtain it if you got extra prereqs.
Generally, you should call getPurchasableSciences() instead of this!
Definition at line 302 of file Science.cpp.
◆ reset()
| void ScienceStore::reset |
( |
| ) |
|
|
virtual |
- Any system should be able to reset all data and go back to an empty state that is ready to accept a completely new set of data. Reset() can expect to be used in the context of resetting the engine in order to start or load a new game.
- Do NOT free and re-allocate resources needed, where possible reorganize and re-initialize the resources already allocated.
- After a reset, the system does not need to be in EXACTLY the same state as a fresh instantiation. If there are persistent state information for the system make sure you maintain it while restoring or re-initializing other transient parts.
Implements SubsystemInterface.
Definition at line 69 of file Science.cpp.
◆ update()
| void ScienceStore::update |
( |
| ) |
|
|
inlinevirtual |
- Update methods are the place to do system per frame processing. You should call the system update once each time through the game loop to service the system.
- Note that currently the GameClient and GameLogic will be updating at different rates where the logic is running real time, and the client will adjust how many loops can be done during one server time slice in order to improve performance on low end machines.
Implements SubsystemInterface.
Definition at line 88 of file Science.h.
◆ ScienceInfo
The documentation for this class was generated from the following files: