MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetALValue

Method GetALValue

Descent3/aiambient.cpp:44–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void ambient_life::GetALValue(char i, char field, void *ptr) {
45 switch (field) {
46 case ALI_TYPE:
47 *((int *)ptr) = m_type[i];
48 break;
49 case ALI_TOTAL:
50 *((uint8_t *)ptr) = m_total[i];
51 break;
52 case ALI_MAX:
53 *((uint8_t *)ptr) = m_max[i];
54 break;
55 case ALI_MIN:
56 *((uint8_t *)ptr) = m_min[i];
57 break;
58 case ALI_FLAGS:
59 *((uint8_t *)ptr) = m_flags[i];
60 break;
61 }
62}
63
64void ambient_life::ComputeNextSize(char i) {
65 char diff = m_max[i] - m_min[i];

Callers 1

UpdateDialogMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected