UFO: Alien Invasion
Loading...
Searching...
No Matches
technologyDescriptions_t Struct Reference

#include <cp_research.h>

Collaboration diagram for technologyDescriptions_t:
Collaboration graph

Data Fields

int numDescriptions
int usedDescription
char * text [MAX_DESCRIPTIONS]
char * tech [MAX_DESCRIPTIONS]

Detailed Description

Definition at line 130 of file cp_research.h.

Field Documentation

◆ numDescriptions

int technologyDescriptions_t::numDescriptions

The number of descriptions.

Definition at line 131 of file cp_research.h.

Referenced by RS_GetDescription(), RS_ParseTechnologies(), UP_Article(), and UP_TechGetsDisplayed().

◆ tech

char* technologyDescriptions_t::tech[MAX_DESCRIPTIONS]

The technology to check (i.e. are its requirements met?) if this description should be displayed.

Definition at line 135 of file cp_research.h.

Referenced by RS_GetDescription(), and RS_ParseTechnologies().

◆ text

char* technologyDescriptions_t::text[MAX_DESCRIPTIONS]

A list of descriptions (Short text-id to get the full text via gettext).

Definition at line 134 of file cp_research.h.

Referenced by RS_GetDescription(), RS_ParseTechnologies(), and RS_ScriptSanityCheck().

◆ usedDescription

int technologyDescriptions_t::usedDescription

The index of the first used description, so we do not get a different text each time it should be displayed. undef=-1

Todo
Check if we should set this in the function that updates the research_proposals? Currently it's only in RS_GetDescription.

Definition at line 132 of file cp_research.h.

Referenced by RS_GetDescription(), RS_ParseTechnologies(), and RS_ResearchFinish().


The documentation for this struct was generated from the following file: