Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
ArmedGameObjDef.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_ARMEDGAMEOBJDEF_H
13#define TT_INCLUDE_ARMEDGAMEOBJDEF_H
14#include "PhysicalGameObjDef.h"
15class ArmedGameObjDef : public PhysicalGameObjDef
16{
17public:
18 ArmedGameObjDef( void );
19 virtual bool Save( ChunkSaveClass &csave );
20 virtual bool Load( ChunkLoadClass &cload );
21 int Get_Weapon_Def_ID() const { return WeaponDefID; }
22 int Get_Secondary_Weapon_Def_ID() const { return SecondaryWeaponDefID; }
23#ifdef DDBEDIT
24 virtual void Dump (FileClass &file);
25#endif
26 DECLARE_EDITABLE(ArmedGameObjDef,PhysicalGameObjDef);
27protected:
28 //All of these floats are in radians (although leveledit shows degrees)
29 float WeaponTiltRate; // 00A8
30 float WeaponTiltMin; // 00AC
31 float WeaponTiltMax; // 00B0
32 float WeaponTurnRate; // 00B4
33 float WeaponTurnMin; // 00B8
34 float WeaponTurnMax; // 00BC
35 float WeaponError; // 00C0
36 int WeaponDefID;
37 int SecondaryWeaponDefID;
38 safe_int WeaponRounds;
39 friend class ArmedGameObj;
40 friend class PresetDump;
41}; // 00D0
42
43#endif