Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
CullableClass.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__CULLABLECLASS_H
13#define TT_INCLUDE__CULLABLECLASS_H
14#include "AABoxClass.h"
15#include "engine_vector.h"
16
17class CullSystemClass;
18class CullLinkClass
19{
20public:
21 inline CullLinkClass(CullSystemClass * system) { System = system;}
22 virtual ~CullLinkClass(void) { }
23 inline void Set_Culling_System(CullSystemClass * sys) { System = sys; }
24 inline CullSystemClass * Get_Culling_System(void) { return System; }
25protected:
26 CullSystemClass * System;
27};
28class CullableClass : public RefCountClass
29{
30public:
31 CullableClass(void);
32 virtual ~CullableClass(void);
33 inline const AABoxClass & Get_Cull_Box(void) const { return CullBox; }
34 void Set_Cull_Box(const AABoxClass & box,bool just_loaded = false);
35 void Set_Culling_System(CullSystemClass * sys);
36 CullSystemClass * Get_Culling_System(void) const;
37 inline void Set_Cull_Link(CullLinkClass * c) { CullLink = c; }
38 inline CullLinkClass * Get_Cull_Link(void) const { return CullLink; }
39private:
40 inline void Set_Next_Collected(CullableClass * c) { NextCollected = c; }
41 inline CullableClass * Get_Next_Collected(void) { return NextCollected; }
42 CullLinkClass * CullLink;
43 AABoxClass CullBox;
44 CullableClass * NextCollected;
45 CullableClass(const CullableClass & src);
46 CullableClass & operator = (const CullableClass & src);
47 friend class CullSystemClass;
48}; // 0028 0040
49
50#endif