Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
cTeam.h
1/* Renegade Scripts.dll
2 Copyright 2013 Tiberian Technologies
3
4 This file is part of the Renegade scripts.dll
5 The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2, or (at your option) any later
8 version. See the file COPYING for more details.
9 In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
10 Only the source code to the module(s) containing the licenced code has to be released.
11*/
12#ifndef TT_INCLUDE__CTEAM_H
13#define TT_INCLUDE__CTEAM_H
14
15
16
17#include "NetworkObjectClass.h"
18#include "engine_string.h"
19
20
21
22#define MAX_TEAMS 2
23
24
25
26class cTeam :
27 public NetworkObjectClass
28{
29
30private:
31
32 WideStringClass name; // 06B4
33 int kills; // 06B8
34 int deaths; // 06BC
35 float score; // 06C0
36 int unk06C4; // 06C4; Not sure about type, but this variable never seems to be used.
37 int id; // 06C8
38
39public:
40
41 cTeam();
42 ~cTeam();
43 void Init(int _id);
44 void Init_Team_Name();
45 void Reset();
46 void Set_Kills(int _kills);
47 void Set_Deaths(int _deaths);
48 SCRIPTS_API void Set_Score(float _score);
49 int Tally_Size();
50 void Increment_Kills();
51 void Increment_Deaths();
52 void Increment_Score(float amount);
53 float Get_Kill_To_Death_Ratio();
54 void Get_Team_String(int, WideStringClass&);
55 Vector3 Get_Color();
56 int Tally_Money();
57 void Export_Creation(BitStreamClass& bitStream);
58 void Import_Creation(BitStreamClass& bitStream);
59 void Export_Rare(BitStreamClass& bitStream);
60 void Import_Rare(BitStreamClass& bitStream);
61 void Export_Occasional(BitStreamClass& bitStream);
62 void Import_Occasional(BitStreamClass& bitStream);
63 void Export_Frequent(BitStreamClass& bitStream) {}
64 void Import_Frequent(BitStreamClass& bitStream) {}
65
66 unsigned int Get_Network_Class_ID() const;
67 void Delete() { delete this; }
68 WideStringClass Get_Name() const { return name; }
69 int Get_Id() const { return id; }
70 int Get_Kills() const { return kills; }
71 int Get_Deaths() const { return deaths; }
72 float Get_Score() const { return score; }
73
74}; // 06CC
75
76
77
78#endif