Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
DecorationPhysClass.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__DECORATIONPHYSCLASS_H
13#define TT_INCLUDE__DECORATIONPHYSCLASS_H
14
15#include "DynamicPhysClass.h"
16#include "DecorationPhysDefClass.h"
17
18class DecorationPhysClass : public DynamicPhysClass
19{
20public:
21 DecorationPhysClass(void);
22 virtual DecorationPhysClass * As_DecorationPhysClass(void) { return this; }
23 void Init(const DecorationPhysDefClass & def);
24 virtual void Timestep(float dt) { }
25 virtual void Set_Model(RenderObjClass * model);
26 virtual bool Cast_Ray(PhysRayCollisionTestClass & raytest);
27 virtual bool Cast_AABox(PhysAABoxCollisionTestClass & boxtest);
28 virtual bool Cast_OBBox(PhysOBBoxCollisionTestClass & boxtest);
29 virtual bool Intersection_Test(PhysAABoxIntersectionTestClass & test);
30 virtual bool Intersection_Test(PhysOBBoxIntersectionTestClass & test);
31 virtual const AABoxClass & Get_Bounding_Box(void) const;
32 virtual const Matrix3D & Get_Transform(void) const;
33 virtual void Set_Transform(const Matrix3D & m);
34 virtual void Get_Shadow_Blob_Box(AABoxClass * set_obj_space_box);
35 virtual const PersistFactoryClass & Get_Factory (void) const;
36 virtual bool Save (ChunkSaveClass &csave);
37 virtual bool Load (ChunkLoadClass &cload);
38 virtual void On_Post_Load(void);
39private:
40 DecorationPhysClass(const DecorationPhysClass &);
41 DecorationPhysClass & operator = (const DecorationPhysClass &);
42 AABoxClass ObjSpaceWorldBox;
43};
44
45
46#endif