Debian Codegraph @

netgames/entropy/EntropyAux.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 __ENTROPY_AUX_H__
20 #define __ENTROPY_AUX_H__cxx . . $ `netgames/entropy/EntropyAux.h:20:9`!
21
22 /*
23 =====================================================================
24 Entropy Special Packet IDs
25 =====================================================================
26 */
27 #define SPID_NEWPLAYERcxx . . $ `netgames/entropy/EntropyAux.h:27:9`! 0
28 #define SPID_TAKEOVERcxx . . $ `netgames/entropy/EntropyAux.h:28:9`! 1
29 #define SPID_MATCHOBJNUMcxx . . $ `netgames/entropy/EntropyAux.h:29:9`! 2
30 #define SPID_ROOMINFOcxx . . $ `netgames/entropy/EntropyAux.h:30:9`! 3
31 #define SPID_PICKUPVIRUScxx . . $ `netgames/entropy/EntropyAux.h:31:9`! 4
32 #define SPID_VIRUSCREATEcxx . . $ `netgames/entropy/EntropyAux.h:32:9`! 5
33
34 /*
35 =====================================================================
36 Some general defines for Entropy
37 =====================================================================
38 */
39 #define MAX_VIRIIcxx . . $ `netgames/entropy/EntropyAux.h:39:9`! 16 // maximum number of virii for each team not picked up
40 #define MAX_VIRII_PER_ROOMcxx . . $ `netgames/entropy/EntropyAux.h:40:9`! 4 // maximum number of virii allowed to be alive in a lab at once
41 #define NUM_TEAMScxx . . $ `netgames/entropy/EntropyAux.h:41:9`! 2 // Only 2 teams supported in this game
42
43 // the following are control message code (when the server sends status info to the client)
44 #define VIRUS_NOTENOUGHKILLScxx . . $ `netgames/entropy/EntropyAux.h:44:9`! 0
45 #define VIRUS_CANTKILLcxx . . $ `netgames/entropy/EntropyAux.h:45:9`! 1
46 #define VIRUS_DESTROYEDcxx . . $ `netgames/entropy/EntropyAux.h:46:9`! 2
47
48 /*
49 =====================================================================
50 Some common function prototypes
51 =====================================================================
52 */
53 void SendRoomInfocxx . . $ SendRoomInfo(d4f767463ce0a6b3).(int pnum);
54 void ReceiveRoomInfocxx . . $ ReceiveRoomInfo(f25546b61a629de7).(uint8_tcxx . . $ uint8_t# *data);
55 void SendClientPickupViruscxx . . $ SendClientPickupVirus(d4f767463ce0a6b3).(int player_num);
56 void ReceivePickupViruscxx . . $ ReceivePickupVirus(f25546b61a629de7).(uint8_tcxx . . $ uint8_t# *data);
57 void SendGameStartPacketcxx . . $ SendGameStartPacket(d4f767463ce0a6b3).(int pnum);
58 void GetGameStartPacketcxx . . $ GetGameStartPacket(f25546b61a629de7).(uint8_tcxx . . $ uint8_t# *data);
59 void SendTakeOverPacketcxx . . $ SendTakeOverPacket(748afa4755bc9595).(int newteam, int oldteam, int room, int victor);
60 void ReceiveTakeOverPacketcxx . . $ ReceiveTakeOverPacket(f25546b61a629de7).(uint8_tcxx . . $ uint8_t# *data);
61 void DoVirusCreatecxx . . $ DoVirusCreate(f25546b61a629de7).(uint8_tcxx . . $ uint8_t# *data);
62 void SendVirusCreatecxx . . $ SendVirusCreate(419c470199a90a97).(objectcxx . . $ object# *obj);
63 bool IsPlayerInEnemycxx . . $ IsPlayerInEnemy(83c267b20bac841a).(int pnum);
64 void RemoveVirusFromPlayercxx . . $ RemoveVirusFromPlayer(918ebd27a9ddbad3).(int player_num, bool remove_all);
65
66 // Functions in EntropyRoom.cpp
67 int SpewObjectInRoomcxx . . $ SpewObjectInRoom(2326284602b0bb2d).(int type, int id, int roomnum);
68 bool PaintRoomWithTexturecxx . . $ PaintRoomWithTexture(cf9ef193275fa6d8).(int texture, int roomnum);
69
70 // Take over functions
71 void TakeOverRoomcxx . . $ TakeOverRoom(748afa4755bc9595).(int newteam, int oldteam, int room, int victor);
72 void SendTakeOverPacketcxx . . $ SendTakeOverPacket(748afa4755bc9595).(int newteam, int oldteam, int room, int victor);
73 void ReceiveTakeOverPacketcxx . . $ ReceiveTakeOverPacket(f25546b61a629de7).(uint8_tcxx . . $ uint8_t# *data);
74
75 /*
76 =====================================================================
77 Externed globals needed throughout Entropy
78 =====================================================================
79 */
80 extern int NumberOfKillsSinceLastDeathcxx . . $ NumberOfKillsSinceLastDeath.[DLLMAX_PLAYERScxx . . $ `netgames/includes/DMFC.h:425:9`!]; //'kills in a row' for a player
81 extern int TeamScorecxx . . $ TeamScore.[NUM_TEAMScxx . . $ `netgames/entropy/EntropyAux.h:41:9`!]; // team scores
82 extern int TeamOwnedRoomscxx . . $ TeamOwnedRooms.[NUM_TEAMScxx . . $ `netgames/entropy/EntropyAux.h:41:9`!]; // Number of rooms each team has
83 extern int EnergyTextcxx . . $ EnergyText.[NUM_TEAMScxx . . $ `netgames/entropy/EntropyAux.h:41:9`!]; // texture handles to Energy room textures
84 extern int RepairTextcxx . . $ RepairText.[NUM_TEAMScxx . . $ `netgames/entropy/EntropyAux.h:41:9`!]; // texture handles to Repair room textures
85 extern int LabTextcxx . . $ LabText.[NUM_TEAMScxx . . $ `netgames/entropy/EntropyAux.h:41:9`!]; // texture handles to Lab room textures
86 extern int virus_idcxx . . $ virus_id.; // Object ID of the Virus object
87 extern int *RoomListcxx . . $ RoomList.; // List of room index's that are special for Entropy (i.e. all the labs, repairs and energy rooms)
88 extern int RoomCountcxx . . $ RoomCount.; // Size of RoomList when it's finally allocated
89 extern roomcxx . . $ room# *dRoomscxx . . $ dRooms.;
90 extern objectcxx . . $ object# *dObjectscxx . . $ dObjects.;
91
92 #endif