Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
SuperweaponGameObj.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__SUPERWEAPONGAMEOBJ_H
13#define TT_INCLUDE__SUPERWEAPONGAMEOBJ_H
14#include "BuildingGameObj.h"
15class SuperweaponGameObjDef;
16class SuperweaponGameObj : public BuildingGameObj
17{
18public:
19 SuperweaponGameObj (void);
20 ~SuperweaponGameObj (void);
21 virtual void Init( void );
22 void Init (const SuperweaponGameObjDef & definition);
23 SCRIPTS_API const SuperweaponGameObjDef & Get_Definition (void) const;
24 SuperweaponGameObj * As_SuperweaponGameObj (void) { return this; }
25 bool Save (ChunkSaveClass &csave);
26 bool Load (ChunkLoadClass &cload);
27 const PersistFactoryClass & Get_Factory (void) const;
28 void CnC_Initialize (BaseControllerClass *base);
29 void On_Destroyed (void);
30#ifndef TTLE_EXPORTS
31 SCRIPTS_API void Launch();
32 bool Is_Launching() {return Launching;}
33#endif
34 void Import_Occasional( BitStreamClass &packet );
35 void Export_Occasional( BitStreamClass &packet );
36 void Think();
37private:
38 void Load_Variables (ChunkLoadClass &cload);
39#ifndef TTLE_EXPORTS
40 void Play_Launch_Animation(bool onoff);
41#endif
42 int LaunchAnimID;
43 float LaunchTimer;
44 bool Launching;
45 bool LaunchFlag;
46};
47
48#endif