Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
BuildingAggregateClass.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#pragma once
13
14#include "StaticAnimPhysClass.h"
15
16
17class BuildingAggregateDefClass;
18class BuildingAggregateClass : public StaticAnimPhysClass
19{
20public:
21 BuildingAggregateClass( void );
22 virtual ~BuildingAggregateClass( void );
23 void Init( const BuildingAggregateDefClass & definition );
24 const BuildingAggregateDefClass * Get_BuildingAggregateDef( void ) const {return (BuildingAggregateDefClass *)Definition; }
25 int Get_Current_State(void);
26 void Set_Current_State(int new_state,bool force_update = false);
27 SCRIPTS_API bool Is_MCT(void);
28 virtual bool Save( ChunkSaveClass & csave );
29 virtual bool Load( ChunkLoadClass & cload );
30 virtual void Save_State( ChunkSaveClass & csave );
31 virtual void Load_State( ChunkLoadClass & cload );
32 virtual void On_Post_Load( void );
33 virtual const PersistFactoryClass & Get_Factory( void ) const;
34protected:
35 bool Is_Power_On(int state);
36 int CurrentState;
37}; // 00E8 00E8 0104 0100