Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
TransitionInstanceClass.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__TRANSITIONINSTANCECLASS_H
13#define TT_INCLUDE__TRANSITIONINSTANCECLASS_H
14class TransitionCompletionDataStruct;
15class TransitionDataClass;
16class SoldierGameObj;
17#include "Matrix3.h"
18#include "Matrix3D.h"
19#include "ReferencerClass.h"
20#include "TransitionGameObjDef.h"
21#include "VehicleGameObj.h"
22class TransitionInstanceClass
23{
24private:
25 Matrix3D CharacterTransform; // 0000
26 OBBoxClass TriggerZone; // 0030
27 ReferencerClass Vehicle; // 006C
28 const TransitionDataClass* Definition; // 007C
29 int LadderIndex; // 0080
30public:
31 TransitionInstanceClass(TransitionDataClass const&);
32 ~TransitionInstanceClass();
33 void Start(SoldierGameObj *soldier);
34 bool Check(SoldierGameObj *soldier, bool b);
35 static void End(SoldierGameObj *,TransitionCompletionDataStruct *);
36 void Set_Parent_Transform(Matrix3D const &tm);
37 TransitionDataClass::StyleType Get_Type() {return Definition->Type;}
38 void Set_Vehicle(VehicleGameObj *obj) {Vehicle = obj;}
39 void Set_Ladder_Index(int index) {LadderIndex = index;}
40 OBBoxClass &Get_Trigger_Zone() {return TriggerZone;}
41 Matrix3D &Get_Character_Transform() {return CharacterTransform;}
42}; // 0084
43
44#endif