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

Function SetHUDState

Descent3/hud.cpp:783–795  ·  view source on GitHub ↗

sets the hud item state(what's visible, how it's drawn, etc)

Source from the content-addressed store, hash-verified

781
782// sets the hud item state(what's visible, how it's drawn, etc)
783void SetHUDState(uint16_t hud_mask, uint16_t hud_gr_mask) {
784 int i;
785
786 Hud_stat_mask = (hud_mask | hud_gr_mask);
787
788 // now go through each hud item, check if it's hud stat mask includes the requested hud_gr_mask
789 // if it does, then set hud mask to graphical
790 for (i = 0; i < MAX_HUD_ITEMS; i++) {
791 HUD_array[i].stat &= ~(STAT_GRAPHICAL);
792 if (HUD_array[i].stat & hud_gr_mask)
793 HUD_array[i].stat |= STAT_GRAPHICAL;
794 }
795}
796
797// initializes items based off their type (information, etc.)
798void InitHUDItem(int new_item, tHUDItem *item) {

Callers 2

SetHUDModeFunction · 0.85
finishMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected