DI-Guy SDK Documentation  13.6
diguyCharacterPathEvent.h
Go to the documentation of this file.
1 
2 /*********************************************************************
3  ** Copyright (c) 1992-2022 MAK Technologies, Inc.
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 class BDI_DECLSPEC_diguy diguyCharacterPathEvent
42 {
43 
44 public:
45 
46  /*l
47  *b Description:
48  **
49  ** Returns the name of the bead. This pointer will
50  ** never be NULL.
51  **
52  *b Returns:
53  **
54  ** name of the bead
55  **
56  *b Callable From:
57  **
58  *- - C++
59  *- - Script
60  */
61  const char* get_name();
62 
63  /*l
64  *b Description:
65  **
66  ** This function returns a pointer to the character
67  ** owning this event bead.
68  **
69  *b Returns:
70  **
71  ** pointer of type diguyCharacter
72  **
73  *b Callable From:
74  **
75  *- - C++
76  *- - Script
77  */
78  diguyCharacter* get_character();
79 
80  /*l
81  *b Description:
82  **
83  ** This function returns a pointer to the path
84  ** owning this event bead.
85  **
86  *b Returns:
87  **
88  ** pointer of type diguyCharacterPath
89  **
90  *b Callable From:
91  **
92  *- - C++
93  *- - Script
94  */
95  diguyCharacterPath* get_path();
96 
97  /*l
98  *b Returns:
99  **
100  ** returns how far the character is into this
101  ** bead. This is a normalized value. 0 means beginning of
102  ** bead, 0.5 means halfway through, 1 means end of bead
103  **
104  *b Callable From:
105  **
106  *- - C++
107  *- - Script
108  */
109  float get_how_far();
110 
111 
116 private:
117 
118 #ifdef CPLUSPLUS_ONLY
119 
120  /*l
121  ** A private constructor.
122  */
123  diguyCharacterPathEvent(bdiBeadEvent* bead);
125  /*l
126  ** A pointer to internal data.
127  */
128  bdiBeadEvent* m_scripted_object;
129 
130  friend class bdiBeadEvent;
131 
132 #endif /* CPLUSPLUS_ONLY */
133 
134 };
135 
136 #endif /* __diguyCharacterPathEvent_H */
Interface to base class of event beads, not often used.
Definition: diguyCharacterPathEvent.h:39
An interface for manipulating a character's spline path. A path is typically authored in DI-Guy Scena...
Definition: diguyCharacterPath.h:47
The class that represents a DI-Guy Entity in the world.
Definition: diguyCharacter.h:82