Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
DamageableGameObjDef.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_DAMAGEABLEGAMEOBJDEF_H
13#define TT_INCLUDE_DAMAGEABLEGAMEOBJDEF_H
14#include "ScriptableGameObjDef.h"
15#include "DefenseObjectDefClass.h"
16enum {
17 PLAYERTYPE_MUTANT = -3,
18 PLAYERTYPE_NEUTRAL,
19 PLAYERTYPE_RENEGADE,
20 PLAYERTYPE_NOD,
21 PLAYERTYPE_GDI,
22};
23class DamageableGameObjDef : public ScriptableGameObjDef
24{
25public:
26 DamageableGameObjDef( void );
27 virtual bool Save( ChunkSaveClass &csave );
28 virtual bool Load( ChunkLoadClass &cload );
29#ifdef DDBEDIT
30 virtual void Dump (FileClass &file);
31#endif
32 DECLARE_EDITABLE( DamageableGameObjDef, ScriptableGameObjDef );
33 int Get_Name_ID (void) const { return TranslatedNameID; }
34 int Get_Encyclopedia_Type (void) const { return EncyclopediaType; }
35 int Get_Encyclopedia_ID (void) const { return EncyclopediaID; }
36 const StringClass & Get_Icon_Filename (void) const { return InfoIconTextureFilename; }
37 int Get_Translated_Name_ID (void) const { return TranslatedNameID; }
38 void Set_Translated_Name_ID (int TransID) {TranslatedNameID = TransID; }
39 const DefenseObjectDefClass & Get_DefenseObjectDef( void ) const { return DefenseObjectDef; }
40 int Get_Default_Player_Type(void) const { return DefaultPlayerType; }
41 void Set_Name_ID(int id) {TranslatedNameID = id;}
42protected:
43 DefenseObjectDefClass DefenseObjectDef; // 004C
44 StringClass InfoIconTextureFilename; // 006C
45 int TranslatedNameID; // 0070
46 int EncyclopediaType; // 0074
47 int EncyclopediaID; // 0078
48 bool NotTargetable; // 007C
49 int DefaultPlayerType; // 0080
50 friend class DamageableGameObj;
51 friend class PresetDump;
52}; // 0084
53
54#endif