Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
StaticAnimPhysDefClass.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__STATICANIMPHYSDEFCLASS_H
13#define TT_INCLUDE__STATICANIMPHYSDEFCLASS_H
14
15#include "StaticPhysDefClass.h"
16#include "ProjectorManagerClass.h"
17#include "AnimCollisionManagerClass.h"
18class StaticAnimPhysDefClass : public StaticPhysDefClass
19{
20public:
21 StaticAnimPhysDefClass(void);
22 virtual uint32 Get_Class_ID (void) const;
23 virtual PersistClass * Create(void) const;
24 virtual const char * Get_Type_Name(void) { return "StaticAnimPhysDef"; }
25 virtual bool Is_Type(const char *);
26 virtual const PersistFactoryClass & Get_Factory (void) const;
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(StaticAnimPhysDefClass,StaticPhysDefClass);
33 bool Shadow_Dynamic_Objs(void) { return ShadowDynamicObjs; }
34 bool Shadow_Is_Additive(void) { return ShadowIsAdditive; }
35 bool Shadow_Ignores_Z_Rotation(void) { return ShadowIgnoresZRotation; }
36 float Shadow_NearZ(void) { return ShadowNearZ; }
37 float Shadow_FarZ(void) { return ShadowFarZ; }
38 float Shadow_Intensity(void) { return ShadowIntensity; }
39 bool Does_Collide_In_Pathfind(void) { return DoesCollideInPathfind; }
40protected:
41 bool IsCosmetic;
42 AnimCollisionManagerDefClass AnimManagerDef;
43 ProjectorManagerDefClass ProjectorManagerDef;
44 bool ShadowDynamicObjs;
45 bool ShadowIsAdditive;
46 bool ShadowIgnoresZRotation;
47 float ShadowNearZ;
48 float ShadowFarZ;
49 float ShadowIntensity;
50 bool DoesCollideInPathfind;
51 friend class StaticAnimPhysClass;
52 friend class PresetDump;
53}; // RH7: 116
54#endif