DI-Guy SDK Documentation  13.1
diguyCharacterPathEvent.h
Go to the documentation of this file.
1 
2 /*********************************************************************
3  ** Copyright (c) 1992-2015 VT MAK
4  ** All rights reserved.
5  *********************************************************************/
6 
7 /*********************************************************************
8  **
9  *t diguyCharacterPathEvent
10  **
11  *b Link against: libdiguy
12  */
13 
14 #ifndef __diguyCharacterPathEvent_H
15 #define __diguyCharacterPathEvent_H
16 
17 #ifdef SWIG
19 #else
20 #define CPLUSPLUS_ONLY
21 #endif
22 
23 #ifdef CPLUSPLUS_ONLY
24 
25 class bdiBeadEvent;
27 class diguyCharacter;
28 class diguyCharacterPath;
29 
30 #endif /* CPLUSPLUS_ONLY */
31 
32 
33 #include <declspec_diguy.h>
34 
41 /****************************************************************************/
42 class BDI_DECLSPEC_diguy diguyCharacterPathEvent
43 {
44 
45 public:
46 
47  /*l
48  *b Description:
49  **
50  ** Returns the name of the bead. This pointer will
51  ** never be NULL.
52  **
53  *b Returns:
54  **
55  ** name of the bead
56  **
57  *b Callable From:
58  **
59  *- - C++
60  *- - Script
61  */
62  const char* get_name();
63 
64  /*l
65  *b Description:
66  **
67  ** This function returns a pointer to the character
68  ** owning this event bead.
69  **
70  *b Returns:
71  **
72  ** pointer of type diguyCharacter
73  **
74  *b Callable From:
75  **
76  *- - C++
77  *- - Script
78  */
79  diguyCharacter* get_character();
80 
81  /*l
82  *b Description:
83  **
84  ** This function returns a pointer to the path
85  ** owning this event bead.
86  **
87  *b Returns:
88  **
89  ** pointer of type diguyCharacterPath
90  **
91  *b Callable From:
92  **
93  *- - C++
94  *- - Script
95  */
96  diguyCharacterPath* get_path();
97 
98  /*l
99  *b Returns:
100  **
101  ** returns how far the character is into this
102  ** bead. This is a normalized value. 0 means beginning of
103  ** bead, 0.5 means halfway through, 1 means end of bead
104  **
105  *b Callable From:
106  **
107  *- - C++
108  *- - Script
109  */
110  float get_how_far();
111 
112 
117 private:
118 
119 #ifdef CPLUSPLUS_ONLY
120 
121  /*l
122  ** A private constructor.
123  */
124  diguyCharacterPathEvent(bdiBeadEvent* bead);
125 
126  /*l
127  ** A pointer to internal data.
128  */
129  bdiBeadEvent* m_scripted_object;
130 
131  friend class bdiBeadEvent;
132 
133 #endif /* CPLUSPLUS_ONLY */
134 
135 };
136 
137 #endif /* __diguyCharacterPathEvent_H */
Interface to base class of event beads, not often used.
Definition: diguyCharacterPathEvent.h:40
An interface for manipulating a character's spline path. Path is typically authored in DI-Guy Scenari...
Definition: diguyCharacterPath.h:50
The class that represents a DI-Guy Entity in the world.
Definition: diguyCharacter.h:78