Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
TransitionGameObj.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_TRANSITIONGAMEOBJ_H
13#define TT_INCLUDE_TRANSITIONGAMEOBJ_H
14#include "BaseGameObj.h"
15#include "engine_vector.h"
16#include "TransitionInstanceClass.h"
17#include "Matrix3D.h"
18class TransitionGameObjDef;
19class TransitionGameObj : public BaseGameObj {
20private:
21 DynamicVectorClass<TransitionInstanceClass *> Transitions;
22 Matrix3D Transform;
23 int LadderIndex;
24public:
25 const PersistFactoryClass &Get_Factory() const;
26 TransitionGameObj();
27 ~TransitionGameObj();
28 void Init();
29 void Init(const TransitionGameObjDef &definition);
30 SCRIPTS_API const TransitionGameObjDef & Get_Definition( void ) const ;
31 bool Save(ChunkSaveClass &csave);
32 bool Load(ChunkLoadClass &cload);
33 void On_Post_Load();
34 void Set_Transform(const Matrix3D &tm) {Transform = tm;}
35 const Matrix3D &Get_Transform() const {return Transform;}
36 void Create_Transitions();
37 void Destroy_Transitions();
38 void Update_Transitions();
39 void Set_Ladder_Index(int index);
40 int Get_Transition_Count() {return Transitions.Count();};
41 TransitionInstanceClass *Get_Transition(int trans) {return Transitions[trans];}
42 int Get_Ladder_Index() {return LadderIndex;}
43};
44
45#endif