Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
SmartGameObjDef.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__SMARTGAMEOBJDEF_H
13#define TT_INCLUDE__SMARTGAMEOBJDEF_H
14
15#include "scripts.h"
16#include "ArmedGameObjDef.h"
17#include "engine_common.h"
18#include "engine_threading.h"
19#include "engine_string.h"
20#include "engine_vector.h"
21
22class SmartGameObjDef : public ArmedGameObjDef
23{
24public:
25 SmartGameObjDef( void );
26 virtual bool Save( ChunkSaveClass &csave );
27 virtual bool Load( ChunkLoadClass &cload );
28 bool Is_Stealthed() const {return IsStealthUnit;}
29 /* Modifies the sight range of the object. SightRange is used by AI code only. */
30 void Set_Sight_Range (const float range) { SightRange = range; }
31 float Get_Sight_Range() const {return SightRange;}
32 /* Modifies the sight arc of the object. SightArc is used by AI code only. */
33 void Set_Sight_Arc (const float arc) { SightArc = arc; }
34 float Get_Sight_Arc() const {return SightArc;}
35#ifdef DDBEDIT
36 virtual void Dump (FileClass &file);
37#endif
38 DECLARE_EDITABLE( SmartGameObjDef, ArmedGameObjDef );
39protected:
40 float SightRange;
41 float SightArc;
42 float ListenerScale;
43 bool IsStealthUnit;
44 friend class SmartGameObj;
45 friend class PresetDump;
46}; // size: 224
47
48
49#endif