Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
LightPhysClass.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__LIGHTPHYSCLASS_H
13#define TT_INCLUDE__LIGHTPHYSCLASS_H
14
15#include "DynamicPhysClass.h"
16#include "DecorationPhysClass.h"
17class LightPhysClass : public DecorationPhysClass
18{
19public:
20 LightPhysClass(bool auto_allocate_light = false);
21 virtual LightPhysClass * As_LightPhysClass(void) { return this; }
22 void Set_Model(RenderObjClass * model);
23 void Set_Vis_Sector_ID(int new_id) { VisSectorID = new_id; }
24 int Get_Vis_Sector_ID(void) const { return VisSectorID; }
25 void Set_Group_ID(int new_id) { GroupID = new_id; }
26 int Get_Group_ID(void) const { return GroupID; }
27 int Is_Vis_Object_Visible(int vis_object_id);
28 virtual const PersistFactoryClass & Get_Factory (void) const;
29 virtual bool Save (ChunkSaveClass &csave);
30 virtual bool Load (ChunkLoadClass &cload);
31 virtual void On_Post_Load(void);
32private:
33 int VisSectorID; // static lights have a pvs.
34 int GroupID; // group id, used by external code
35 LightPhysClass(const LightPhysClass &);
36 LightPhysClass & operator = (const LightPhysClass &);
37};
38
39#endif