DI-Guy SDK Documentation  13.2
diguyLinkController.h
Go to the documentation of this file.
1 
2 /*********************************************************************
3  ** Copyright (c) 1992-2016 VT MAK
4  ** All rights reserved.
5  *********************************************************************/
6 
7 /*********************************************************************/
14 #pragma once
15 
16 #ifdef SWIG
17 %module diguyLinkController
18 #else
19 #define CPLUSPLUS_ONLY
20 #endif
21 
22 #ifdef CPLUSPLUS_ONLY
23 #include <diguy_constants.h>
24 
25 class bdiLink;
26 class bdiLinkController;
27 class diguyCharacter;
29 class diguyGraphicsShape;
31 
32 #endif
33 
34 #include <declspec_diguy.h>
35 
36 //------------------------------------------------------------------------------
45 class BDI_DECLSPEC_diguy diguyLinkController
46 {
47 
48 public:
49 
50 /*****************************************************************************/
63  /*l
64  *b Description:
65  **
66  ** Returns the name of the link. This pointer will never be NULL.
67  **
68  *b Returns:
69  **
70  ** name of the link that this controller modifies
71  */
72  const char* get_name();
73 
76  int set_translation_override(float x, float y, float z, float ramp_time = .25f);
77 
79  int set_translation_override(float x, float y, float z, float vx, float vy, float vz, float ramp_time = .25f);
80 
82  int set_translation_velocity(float vx, float vy, float vz, float ramp_time = .25f);
83 
85  int end_translation_override(float ramp_time = .25f);
86 
88  int set_translation_additive(int additive);
89 
92  int set_translation_post_rotation(int post_rotation);
93 
96  int set_translation_restore_time(float snap_back_time);
97 
100  int set_rotation_override(float rz, float rx, float ry, float ramp_time = .25f);
101 
103  int set_rotation_override(float rz, float rx, float ry, float vrz, float vrx, float vry, float ramp_time = .25f);
104 
106  int set_rotation_velocity(float vrz, float vrx, float vry, float ramp_time = .25f);
107 
109  int end_rotation_override(float ramp_time = .25f);
110 
112  int set_rotation_additive(int additive);
113 
116  int set_rotation_restore_time(float time);
117 
118 
123 #ifdef CPLUSPLUS_ONLY
124 
125  bdiLinkController* get_scripted_object() {return m_scripted_object;}
126 
127 protected:
128 
129  /*l
130  ** A protected constructor. Constructors are called automatically
131  ** by DI-Guy.
132  */
133  diguyLinkController(bdiLinkController* internal_data);
134 
135  /*l
136  ** A protected destructor. Destructors are called automatically
137  ** by DI-Guy.
138  */
139  virtual ~diguyLinkController();
140 
141 private:
142 
143  /*l
144  ** A pointer to internal data.
145  */
146  bdiLinkController* m_scripted_object;
148  friend class bdiLink;
149  friend class bdiLinkController;
150 
151 #endif
152 
153 };
A class that represents the unique per-character shader object.
Definition: diguyGraphicsShaderInstance.h:55
The class that represents a DI-Guy Entity in the world.
Definition: diguyCharacter.h:81
A class that represents the unique per-character non-shared mesh object. DI-Guy encapsulates its text...
Definition: diguyGraphicsShape.h:51