Debian Codegraph @

Descent3/aiambient.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef _AIAMBIENT_H_
20 #define _AIAMBIENT_H_cxx . . $ `Descent3/aiambient.h:20:9`!
21
22 #include "cfile.h"cxx . . $ `<file>/cfile/cfile.h`/
23
24 #define MAX_AL_TYPEScxx . . $ `Descent3/aiambient.h:24:9`! 6
25 #define MAX_ALS_PER_TYPEcxx . . $ `Descent3/aiambient.h:25:9`! 130
26
27 #define ALF_INSIDEcxx . . $ `Descent3/aiambient.h:27:9`! 0x01
28
29 #define ALI_TYPEcxx . . $ `Descent3/aiambient.h:29:9`! 0
30 #define ALI_TOTALcxx . . $ `Descent3/aiambient.h:30:9`! 1
31 #define ALI_MAXcxx . . $ `Descent3/aiambient.h:31:9`! 2
32 #define ALI_MINcxx . . $ `Descent3/aiambient.h:32:9`! 3
33 #define ALI_FLAGScxx . . $ `Descent3/aiambient.h:33:9`! 4
34
35 #define CHECK_INTERVAL_MINcxx . . $ `Descent3/aiambient.h:35:9`! 5.0f
36 #define CHECK_INTERVAL_MAXcxx . . $ `Descent3/aiambient.h:36:9`! 10.0f
37
38 class ambient_lifecxx . . $ ambient_life# {
39 // Editor settable values
40 int m_typecxx . . $ ambient_life#m_type.[MAX_AL_TYPEScxx . . $ `Descent3/aiambient.h:24:9`!];
41 uint8_tcxx . . $ uint8_t# m_totalcxx . . $ ambient_life#m_total.[MAX_AL_TYPEScxx . . $ `Descent3/aiambient.h:24:9`!];
42 uint8_tcxx . . $ uint8_t# m_maxcxx . . $ ambient_life#m_max.[MAX_AL_TYPEScxx . . $ `Descent3/aiambient.h:24:9`!];
43 uint8_tcxx . . $ uint8_t# m_mincxx . . $ ambient_life#m_min.[MAX_AL_TYPEScxx . . $ `Descent3/aiambient.h:24:9`!];
44 uint8_tcxx . . $ uint8_t# m_flagscxx . . $ ambient_life#m_flags.[MAX_AL_TYPEScxx . . $ `Descent3/aiambient.h:24:9`!];
45
46 // These are never set or gotten from outside of the class
47 uint8_tcxx . . $ uint8_t# m_cur_numcxx . . $ ambient_life#m_cur_num.[MAX_AL_TYPEScxx . . $ `Descent3/aiambient.h:24:9`!];
48 int m_handlecxx . . $ ambient_life#m_handle.[MAX_AL_TYPEScxx . . $ `Descent3/aiambient.h:24:9`!][MAX_ALS_PER_TYPEcxx . . $ `Descent3/aiambient.h:25:9`!];
49
50 // Don't save these...
51 uint8_tcxx . . $ uint8_t# m_next_sizecxx . . $ ambient_life#m_next_size.[MAX_AL_TYPEScxx . . $ `Descent3/aiambient.h:24:9`!];
52 float m_next_do_timecxx . . $ ambient_life#m_next_do_time.[MAX_AL_TYPEScxx . . $ `Descent3/aiambient.h:24:9`!];
53
54 void ComputeNextSizecxx . . $ ambient_life#ComputeNextSize(44b6ea1973a07080).(char index);
55
56 public:
57 ambient_lifecxx . . $ ambient_life#ambient_life(49f6e7a06ebc5aa8).() { ALResetcxx . . $ ambient_life#ALReset(49f6e7a06ebc5aa8).(); }
58
59 void GetALValuecxx . . $ ambient_life#GetALValue(dca1de0465141aaf).(char index, char field, void *ptr);
60 void SetALValuecxx . . $ ambient_life#SetALValue(dca1de0465141aaf).(char index, char field, void *ptr);
61 void SaveDatacxx . . $ ambient_life#SaveData(3639e799710acb68).(CFILEcxx . . $ CFILE# *fptr);
62 void LoadDatacxx . . $ ambient_life#LoadData(3639e799710acb68).(CFILEcxx . . $ CFILE# *fptr);
63
64 void DoFramecxx . . $ ambient_life#DoFrame(49f6e7a06ebc5aa8).();
65 void InitForLevelcxx . . $ ambient_life#InitForLevel(49f6e7a06ebc5aa8).(void);
66 void ALResetcxx . . $ ambient_life#ALReset(49f6e7a06ebc5aa8).();
67 };
68
69 extern ambient_lifecxx . . $ ambient_life# a_lifecxx . . $ a_life.;
70
71 #endif