Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
BuildingAggregateDefClass.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__BUILDINGAGGREGATEDEFCLASS_H
13#define TT_INCLUDE__BUILDINGAGGREGATEDEFCLASS_H
14
15#include "StaticAnimPhysDefClass.h"
16
17
18class BuildingAggregateDefClass : public StaticAnimPhysDefClass
19{
20public:
21 static BuildingAggregateDefClass* repairBayAnimation;
22 BuildingAggregateDefClass(void);
23 virtual uint32 Get_Class_ID( void ) const;
24 virtual const char * Get_Type_Name(void) { return "BuildingAggregateDef"; }
25 virtual bool Is_Type(const char *);
26 virtual PersistClass * Create( void ) const ;
27 virtual bool Save( ChunkSaveClass &csave );
28 virtual bool Load( ChunkLoadClass &cload );
29 virtual const PersistFactoryClass & Get_Factory( void ) const;
30#ifdef DDBEDIT
31 virtual void Dump (FileClass &file);
32#endif
33 DECLARE_EDITABLE( BuildingAggregateDefClass, StaticAnimPhysDefClass );
34protected:
35 bool Save_State_Animation_Data(ChunkSaveClass & csave,int state_index);
36 bool Load_State_Animation_Data(ChunkLoadClass & cload,int state_index);
37 enum
38 {
39 ANIM_LOGIC_LINEAR = 0,
40 ANIM_LOGIC_LOOP,
41 ANIM_LOGIC_SEQUENCE,
42 };
43 int AnimLogicMode;
44 bool IsMCT;
45 int Frame0[10];
46 int Frame1[10];
47 bool AnimationEnabled[10];
48 friend class BuildingAggregateClass;
49 friend class PresetDump;
50}; // RH7 216, RH8 214
51
52
53#endif