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

Method get_hud_data

Descent3/pilot_class.cpp:885–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883 }
884}
885void pilot::get_hud_data(uint8_t *hmode, uint16_t *hstat, uint16_t *hgraphicalstat, int *gw_w, int *gw_h) {
886 if (hmode) {
887 *hmode = hud_mode;
888 }
889
890 if (hstat) {
891 *hstat = hud_stat;
892 }
893
894 if (hgraphicalstat) {
895 *hgraphicalstat = hud_graphical_stat;
896 }
897
898 if (gw_w) {
899 *gw_w = game_window_w;
900 }
901
902 if (gw_h) {
903 *gw_h = game_window_h;
904 }
905}
906
907void pilot::add_mission_data(tMissionData *mdata) {
908 if (!mdata) {

Callers 5

InitShipHUDFunction · 0.80
SetHUDModeFunction · 0.80
SetScreenModeFunction · 0.80
setupMethod · 0.80
PlayerStopObservingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected