UTRACKER.H (2913B)
1 // 2 // Copyright 2020 Electronic Arts Inc. 3 // 4 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free 5 // software: you can redistribute it and/or modify it under the terms of 6 // the GNU General Public License as published by the Free Software Foundation, 7 // either version 3 of the License, or (at your option) any later version. 8 9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 10 // in the hope that it will be useful, but with permitted additional restrictions 11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 12 // distributed with this program. You should have received a copy of the 13 // GNU General Public License along with permitted additional restrictions 14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection 15 16 /*************************************************************************** 17 ** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ** 18 *************************************************************************** 19 * * 20 * Project Name : Command & Conquer * 21 * * 22 * File Name : UTRACKER.H * 23 * * 24 * Programmer : Steve Tall * 25 * * 26 * Start Date : June 3rd, 1996 * 27 * * 28 * Last Update : June 7th, 1996 [ST] * 29 * * 30 *-------------------------------------------------------------------------* 31 * The UnitTracker class exists to track the various statistics * 32 * required for internet games. * 33 * * 34 * * 35 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 36 37 38 39 /* 40 ** UnitTracker Class 41 */ 42 43 class UnitTrackerClass { 44 45 public: 46 47 UnitTrackerClass(int unit_count); 48 ~UnitTrackerClass(void); 49 50 void Increment_Unit_Total (int unit_type); 51 void Decrement_Unit_Total (int unit_type); 52 void Clear_Unit_Total(void); 53 54 int Get_Unit_Total (int unit_type); 55 long *Get_All_Totals (void); 56 int Get_Unit_Count (void){return (UnitCount);}; 57 58 void To_Network_Format(void); 59 void To_PC_Format(void); 60 61 private: 62 63 long *UnitTotals; 64 int UnitCount; 65 int InNetworkFormat; 66 67 }; 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83