1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
---|
3 | <title>Orxonox: TrackManager Class Reference</title> |
---|
4 | <link href="../../doxygen.css" rel="stylesheet" type="text/css"> |
---|
5 | </head><body> |
---|
6 | <!-- Generated by Doxygen 1.3.8 --> |
---|
7 | <div class="qindex"><a class="qindex" href="../../index.html">Main Page</a> | <a class="qindex" href="../../annotated.html">Class List</a> | <a class="qindex" href="../../files.html">File List</a> | <a class="qindex" href="../../functions.html">Class Members</a> | <a class="qindex" href="../../pages.html">Related Pages</a></div> |
---|
8 | <h1>TrackManager Class Reference</h1>The TrackManager handles the flow of the Players through the game. |
---|
9 | <a href="#_details">More...</a> |
---|
10 | <p> |
---|
11 | <code>#include <<a class="el" href="../../d6/d53/track__manager_8h-source.html">track_manager.h</a>></code> |
---|
12 | <p> |
---|
13 | <a href="../../d3/d56/classTrackManager-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> |
---|
14 | <tr><td></td></tr> |
---|
15 | <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> |
---|
16 | <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a0">TrackManager</a> ()</td></tr> |
---|
17 | |
---|
18 | <tr><td class="mdescLeft"> </td><td class="mdescRight">standard constructor <a href="#a0"></a><br></td></tr> |
---|
19 | <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a1">~TrackManager</a> ()</td></tr> |
---|
20 | |
---|
21 | <tr><td class="mdescLeft"> </td><td class="mdescRight">standard deconstructor <a href="#a1"></a><br></td></tr> |
---|
22 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a2">workOn</a> (int trackID)</td></tr> |
---|
23 | |
---|
24 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the trackID we are working on. <a href="#a2"></a><br></td></tr> |
---|
25 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a3" doxytag="TrackManager::setType" ></a> |
---|
26 | void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a3">setType</a> (CurveType curveType)</td></tr> |
---|
27 | |
---|
28 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the Type of the Curve curveType The Type to set. <br></td></tr> |
---|
29 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a4">setLength</a> (float time)</td></tr> |
---|
30 | |
---|
31 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the length of the current path in seconds. <a href="#a4"></a><br></td></tr> |
---|
32 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a5">addPoint</a> (Vector newPoint)</td></tr> |
---|
33 | |
---|
34 | <tr><td class="mdescLeft"> </td><td class="mdescRight">adds a point to the current <a class="el" href="../../d3/dce/structTrackManager_1_1TrackElement.html">TrackElement</a> <a href="#a5"></a><br></td></tr> |
---|
35 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a6">addHotPoint</a> (Vector newPoint)</td></tr> |
---|
36 | |
---|
37 | <tr><td class="mdescLeft"> </td><td class="mdescRight">adds save/splitpoint. <a href="#a6"></a><br></td></tr> |
---|
38 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a7">setSavePoint</a> (void)</td></tr> |
---|
39 | |
---|
40 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the last HotPoint into a savePoint. <a href="#a7"></a><br></td></tr> |
---|
41 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a8">fork</a> (int count,...)</td></tr> |
---|
42 | |
---|
43 | <tr><td class="mdescLeft"> </td><td class="mdescRight">adds some interessting non-linear movments through the level. <a href="#a8"></a><br></td></tr> |
---|
44 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a9">forkV</a> (int count, int *trackIDs)</td></tr> |
---|
45 | |
---|
46 | <tr><td class="mdescLeft"> </td><td class="mdescRight">adds some interessting non-linear movments through the level. <a href="#a9"></a><br></td></tr> |
---|
47 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a10">condition</a> (int groupID, <a class="el" href="../../d9/d44/structTrackManager_1_1PathCondition.html">PathCondition</a> cond)</td></tr> |
---|
48 | |
---|
49 | <tr><td class="mdescLeft"> </td><td class="mdescRight">decides under what condition a certain Path will be chosen. <a href="#a10"></a><br></td></tr> |
---|
50 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a11">join</a> (int count,...)</td></tr> |
---|
51 | |
---|
52 | <tr><td class="mdescLeft"> </td><td class="mdescRight">joins some tracks together again. <a href="#a11"></a><br></td></tr> |
---|
53 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a12">joinV</a> (int count, int *trackIDs)</td></tr> |
---|
54 | |
---|
55 | <tr><td class="mdescLeft"> </td><td class="mdescRight">joins some tracks together again. <a href="#a12"></a><br></td></tr> |
---|
56 | <tr><td class="memItemLeft" nowrap align=right valign=top>Vector </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a13">calcPos</a> ()</td></tr> |
---|
57 | |
---|
58 | <tr><td class="mdescLeft"> </td><td class="mdescRight">calculates the Position for the localTime of the Track. <a href="#a13"></a><br></td></tr> |
---|
59 | <tr><td class="memItemLeft" nowrap align=right valign=top>Vector </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a14">calcDir</a> ()</td></tr> |
---|
60 | |
---|
61 | <tr><td class="mdescLeft"> </td><td class="mdescRight">calculates the Rotation for the localTime of the Track. <a href="#a14"></a><br></td></tr> |
---|
62 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a15">tick</a> (float dt)</td></tr> |
---|
63 | |
---|
64 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Advances the local-time of the Track around dt. <a href="#a15"></a><br></td></tr> |
---|
65 | <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#a16">choosePath</a> (int graphID)</td></tr> |
---|
66 | |
---|
67 | <tr><td class="mdescLeft"> </td><td class="mdescRight">a Function that decides which Path we should follow. <a href="#a16"></a><br></td></tr> |
---|
68 | <tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr> |
---|
69 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="../../d3/dce/structTrackManager_1_1TrackElement.html">TrackElement</a> </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#d0">findTrackElementByID</a> (int trackID)</td></tr> |
---|
70 | |
---|
71 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Searches for a given trackID. <a href="#d0"></a><br></td></tr> |
---|
72 | <tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> |
---|
73 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="r0" doxytag="TrackManager::firstGraph" ></a> |
---|
74 | <a class="el" href="../../d3/dce/structTrackManager_1_1TrackElement.html">TrackElement</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#r0">firstGraph</a></td></tr> |
---|
75 | |
---|
76 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The first Graph-element we are on. <br></td></tr> |
---|
77 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="r1" doxytag="TrackManager::currentGraph" ></a> |
---|
78 | <a class="el" href="../../d3/dce/structTrackManager_1_1TrackElement.html">TrackElement</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#r1">currentGraph</a></td></tr> |
---|
79 | |
---|
80 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The Graph-element we are working on. <br></td></tr> |
---|
81 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="r2" doxytag="TrackManager::localTime" ></a> |
---|
82 | float </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#r2">localTime</a></td></tr> |
---|
83 | |
---|
84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The time that has been passed since the traveling the Track. <br></td></tr> |
---|
85 | <tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="r3" doxytag="TrackManager::trackElementCount" ></a> |
---|
86 | int </td><td class="memItemRight" valign=bottom><a class="el" href="../../dd/d41/classTrackManager.html#r3">trackElementCount</a></td></tr> |
---|
87 | |
---|
88 | <tr><td class="mdescLeft"> </td><td class="mdescRight">The count of TrackElements that exist. <br></td></tr> |
---|
89 | </table> |
---|
90 | <hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
91 | The TrackManager handles the flow of the Players through the game. |
---|
92 | <p> |
---|
93 | <dl compact><dt><b><a class="el" href="../../todo.html#_todo000004">Todo:</a></b></dt><dd>write the methodes </dd></dl> |
---|
94 | <b>The TrackManager works as followed:</b> <br> |
---|
95 | <br> |
---|
96 | <b>1. Initialize it, by setting up the Graph. You can do this by using the following Commands.</b> <ul> |
---|
97 | <li><a class="el" href="../../dd/d41/classTrackManager.html#a2">workOn()</a>: changes the ID that will be altered through the changes. </li> |
---|
98 | <li>setType: lets you set the CurveType of the Curve we are Working on. (default is BezierCurve, set this as early as possible, for this uses resources). </li> |
---|
99 | <li><a class="el" href="../../dd/d41/classTrackManager.html#a4">setLength()</a>: sets the length of the current path in seconds. </li> |
---|
100 | <li><a class="el" href="../../dd/d41/classTrackManager.html#a5">addPoint()</a>: adds a point to the Curve. </li> |
---|
101 | <li><a class="el" href="../../dd/d41/classTrackManager.html#a6">addHotPoint()</a>: adds save/splitpoint.<br> |
---|
102 | </li> |
---|
103 | <li><a class="el" href="../../dd/d41/classTrackManager.html#a8">fork()</a>: adds some interessting non-linear movments through the level (fork will force addHotPoint if not done then). </li> |
---|
104 | <li><a class="el" href="../../dd/d41/classTrackManager.html#a10">condition()</a>: decides under what condition a certain Path will be chosen. </li> |
---|
105 | <li><a class="el" href="../../dd/d41/classTrackManager.html#a11">join()</a>: joins some tracks together again. Join will set the localTime to the longest time a Path has to get to this Point) </li> |
---|
106 | <li><a class="el" href="../../dd/d41/classTrackManager.html#a7">setSavePoint()</a>: Sets a HotPoint into a savePoint. A Savepoint can be used as a rollbackpoint if a Player gets shot.</li> |
---|
107 | </ul> |
---|
108 | look out: <b>SAVEPOINTS CAN NOT BE FORKS</b> (but joins), because the condition is really hard to guess if you do not give some impuls. <br> |
---|
109 | <br> |
---|
110 | <b> 2. Runtime knows the following: </b> <ul> |
---|
111 | <li><a class="el" href="../../dd/d41/classTrackManager.html#a13">calcPos()</a>: returns the current position on the track </li> |
---|
112 | <li><a class="el" href="../../dd/d41/classTrackManager.html#a14">calcDir()</a>: returns the current Direction the track is flying on. </li> |
---|
113 | <li><a class="el" href="../../dd/d41/classTrackManager.html#a15">tick()</a>: makes a Step on the Path. increases localTime by dt. </li> |
---|
114 | <li><a class="el" href="../../dd/d41/classTrackManager.html#a16">choosePath()</a>: a Function that decides which Path we should follow.</li> |
---|
115 | </ul> |
---|
116 | TrackManager can be handled as a StateMachine. |
---|
117 | <p> |
---|
118 | <hr><h2>Constructor & Destructor Documentation</h2> |
---|
119 | <a class="anchor" name="a0" doxytag="TrackManager::TrackManager" ></a><p> |
---|
120 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
121 | <tr> |
---|
122 | <td class="mdRow"> |
---|
123 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
124 | <tr> |
---|
125 | <td class="md" nowrap valign="top"> TrackManager::TrackManager </td> |
---|
126 | <td class="md" valign="top">( </td> |
---|
127 | <td class="mdname1" valign="top" nowrap> </td> |
---|
128 | <td class="md" valign="top"> ) </td> |
---|
129 | <td class="md" nowrap></td> |
---|
130 | </tr> |
---|
131 | </table> |
---|
132 | </td> |
---|
133 | </tr> |
---|
134 | </table> |
---|
135 | <table cellspacing=5 cellpadding=0 border=0> |
---|
136 | <tr> |
---|
137 | <td> |
---|
138 | |
---|
139 | </td> |
---|
140 | <td> |
---|
141 | |
---|
142 | <p> |
---|
143 | standard constructor |
---|
144 | <p> |
---|
145 | <dl compact><dt><b><a class="el" href="../../todo.html#_todo000001">Todo:</a></b></dt><dd>this constructor is not jet implemented - do it </dd></dl> |
---|
146 | </td> |
---|
147 | </tr> |
---|
148 | </table> |
---|
149 | <a class="anchor" name="a1" doxytag="TrackManager::~TrackManager" ></a><p> |
---|
150 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
151 | <tr> |
---|
152 | <td class="mdRow"> |
---|
153 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
154 | <tr> |
---|
155 | <td class="md" nowrap valign="top"> TrackManager::~<a class="el" href="../../dd/d41/classTrackManager.html">TrackManager</a> </td> |
---|
156 | <td class="md" valign="top">( </td> |
---|
157 | <td class="mdname1" valign="top" nowrap> </td> |
---|
158 | <td class="md" valign="top"> ) </td> |
---|
159 | <td class="md" nowrap></td> |
---|
160 | </tr> |
---|
161 | </table> |
---|
162 | </td> |
---|
163 | </tr> |
---|
164 | </table> |
---|
165 | <table cellspacing=5 cellpadding=0 border=0> |
---|
166 | <tr> |
---|
167 | <td> |
---|
168 | |
---|
169 | </td> |
---|
170 | <td> |
---|
171 | |
---|
172 | <p> |
---|
173 | standard deconstructor |
---|
174 | <p> |
---|
175 | <dl compact><dt><b><a class="el" href="../../todo.html#_todo000002">Todo:</a></b></dt><dd>this deconstructor is not jet implemented - do it </dd></dl> |
---|
176 | </td> |
---|
177 | </tr> |
---|
178 | </table> |
---|
179 | <hr><h2>Member Function Documentation</h2> |
---|
180 | <a class="anchor" name="a6" doxytag="TrackManager::addHotPoint" ></a><p> |
---|
181 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
182 | <tr> |
---|
183 | <td class="mdRow"> |
---|
184 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
185 | <tr> |
---|
186 | <td class="md" nowrap valign="top"> void TrackManager::addHotPoint </td> |
---|
187 | <td class="md" valign="top">( </td> |
---|
188 | <td class="md" nowrap valign="top">Vector </td> |
---|
189 | <td class="mdname1" valign="top" nowrap> <em>newPoint</em> </td> |
---|
190 | <td class="md" valign="top"> ) </td> |
---|
191 | <td class="md" nowrap></td> |
---|
192 | </tr> |
---|
193 | </table> |
---|
194 | </td> |
---|
195 | </tr> |
---|
196 | </table> |
---|
197 | <table cellspacing=5 cellpadding=0 border=0> |
---|
198 | <tr> |
---|
199 | <td> |
---|
200 | |
---|
201 | </td> |
---|
202 | <td> |
---|
203 | |
---|
204 | <p> |
---|
205 | adds save/splitpoint. |
---|
206 | <p> |
---|
207 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
208 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
209 | <tr><td></td><td valign=top><em>newPoint</em> </td><td>The point to add. </td></tr> |
---|
210 | </table> |
---|
211 | </dl> |
---|
212 | </td> |
---|
213 | </tr> |
---|
214 | </table> |
---|
215 | <a class="anchor" name="a5" doxytag="TrackManager::addPoint" ></a><p> |
---|
216 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
217 | <tr> |
---|
218 | <td class="mdRow"> |
---|
219 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
220 | <tr> |
---|
221 | <td class="md" nowrap valign="top"> void TrackManager::addPoint </td> |
---|
222 | <td class="md" valign="top">( </td> |
---|
223 | <td class="md" nowrap valign="top">Vector </td> |
---|
224 | <td class="mdname1" valign="top" nowrap> <em>newPoint</em> </td> |
---|
225 | <td class="md" valign="top"> ) </td> |
---|
226 | <td class="md" nowrap></td> |
---|
227 | </tr> |
---|
228 | </table> |
---|
229 | </td> |
---|
230 | </tr> |
---|
231 | </table> |
---|
232 | <table cellspacing=5 cellpadding=0 border=0> |
---|
233 | <tr> |
---|
234 | <td> |
---|
235 | |
---|
236 | </td> |
---|
237 | <td> |
---|
238 | |
---|
239 | <p> |
---|
240 | adds a point to the current <a class="el" href="../../d3/dce/structTrackManager_1_1TrackElement.html">TrackElement</a> |
---|
241 | <p> |
---|
242 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
243 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
244 | <tr><td></td><td valign=top><em>newPoint</em> </td><td>The point to add. </td></tr> |
---|
245 | </table> |
---|
246 | </dl> |
---|
247 | </td> |
---|
248 | </tr> |
---|
249 | </table> |
---|
250 | <a class="anchor" name="a14" doxytag="TrackManager::calcDir" ></a><p> |
---|
251 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
252 | <tr> |
---|
253 | <td class="mdRow"> |
---|
254 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
255 | <tr> |
---|
256 | <td class="md" nowrap valign="top"> Vector TrackManager::calcDir </td> |
---|
257 | <td class="md" valign="top">( </td> |
---|
258 | <td class="mdname1" valign="top" nowrap> </td> |
---|
259 | <td class="md" valign="top"> ) </td> |
---|
260 | <td class="md" nowrap></td> |
---|
261 | </tr> |
---|
262 | </table> |
---|
263 | </td> |
---|
264 | </tr> |
---|
265 | </table> |
---|
266 | <table cellspacing=5 cellpadding=0 border=0> |
---|
267 | <tr> |
---|
268 | <td> |
---|
269 | |
---|
270 | </td> |
---|
271 | <td> |
---|
272 | |
---|
273 | <p> |
---|
274 | calculates the Rotation for the localTime of the Track. |
---|
275 | <p> |
---|
276 | <dl compact><dt><b>Returns:</b></dt><dd>the calculated Rotation </dd></dl> |
---|
277 | </td> |
---|
278 | </tr> |
---|
279 | </table> |
---|
280 | <a class="anchor" name="a13" doxytag="TrackManager::calcPos" ></a><p> |
---|
281 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
282 | <tr> |
---|
283 | <td class="mdRow"> |
---|
284 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
285 | <tr> |
---|
286 | <td class="md" nowrap valign="top"> Vector TrackManager::calcPos </td> |
---|
287 | <td class="md" valign="top">( </td> |
---|
288 | <td class="mdname1" valign="top" nowrap> </td> |
---|
289 | <td class="md" valign="top"> ) </td> |
---|
290 | <td class="md" nowrap></td> |
---|
291 | </tr> |
---|
292 | </table> |
---|
293 | </td> |
---|
294 | </tr> |
---|
295 | </table> |
---|
296 | <table cellspacing=5 cellpadding=0 border=0> |
---|
297 | <tr> |
---|
298 | <td> |
---|
299 | |
---|
300 | </td> |
---|
301 | <td> |
---|
302 | |
---|
303 | <p> |
---|
304 | calculates the Position for the localTime of the Track. |
---|
305 | <p> |
---|
306 | <dl compact><dt><b>Returns:</b></dt><dd>the calculated Position </dd></dl> |
---|
307 | </td> |
---|
308 | </tr> |
---|
309 | </table> |
---|
310 | <a class="anchor" name="a16" doxytag="TrackManager::choosePath" ></a><p> |
---|
311 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
312 | <tr> |
---|
313 | <td class="mdRow"> |
---|
314 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
315 | <tr> |
---|
316 | <td class="md" nowrap valign="top"> void TrackManager::choosePath </td> |
---|
317 | <td class="md" valign="top">( </td> |
---|
318 | <td class="md" nowrap valign="top">int </td> |
---|
319 | <td class="mdname1" valign="top" nowrap> <em>graphID</em> </td> |
---|
320 | <td class="md" valign="top"> ) </td> |
---|
321 | <td class="md" nowrap></td> |
---|
322 | </tr> |
---|
323 | </table> |
---|
324 | </td> |
---|
325 | </tr> |
---|
326 | </table> |
---|
327 | <table cellspacing=5 cellpadding=0 border=0> |
---|
328 | <tr> |
---|
329 | <td> |
---|
330 | |
---|
331 | </td> |
---|
332 | <td> |
---|
333 | |
---|
334 | <p> |
---|
335 | a Function that decides which Path we should follow. |
---|
336 | <p> |
---|
337 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
338 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
339 | <tr><td></td><td valign=top><em>graphID</em> </td><td>The Path to choose. </td></tr> |
---|
340 | </table> |
---|
341 | </dl> |
---|
342 | </td> |
---|
343 | </tr> |
---|
344 | </table> |
---|
345 | <a class="anchor" name="a10" doxytag="TrackManager::condition" ></a><p> |
---|
346 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
347 | <tr> |
---|
348 | <td class="mdRow"> |
---|
349 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
350 | <tr> |
---|
351 | <td class="md" nowrap valign="top"> void TrackManager::condition </td> |
---|
352 | <td class="md" valign="top">( </td> |
---|
353 | <td class="md" nowrap valign="top">int </td> |
---|
354 | <td class="mdname" nowrap> <em>groupID</em>, </td> |
---|
355 | </tr> |
---|
356 | <tr> |
---|
357 | <td class="md" nowrap align="right"></td> |
---|
358 | <td></td> |
---|
359 | <td class="md" nowrap><a class="el" href="../../d9/d44/structTrackManager_1_1PathCondition.html">PathCondition</a> </td> |
---|
360 | <td class="mdname" nowrap> <em>cond</em></td> |
---|
361 | </tr> |
---|
362 | <tr> |
---|
363 | <td></td> |
---|
364 | <td class="md">) </td> |
---|
365 | <td class="md" colspan="2"></td> |
---|
366 | </tr> |
---|
367 | </table> |
---|
368 | </td> |
---|
369 | </tr> |
---|
370 | </table> |
---|
371 | <table cellspacing=5 cellpadding=0 border=0> |
---|
372 | <tr> |
---|
373 | <td> |
---|
374 | |
---|
375 | </td> |
---|
376 | <td> |
---|
377 | |
---|
378 | <p> |
---|
379 | decides under what condition a certain Path will be chosen. |
---|
380 | <p> |
---|
381 | <dl compact><dt><b><a class="el" href="../../todo.html#_todo000006">Todo:</a></b></dt><dd>really do this!!</dd></dl> |
---|
382 | </td> |
---|
383 | </tr> |
---|
384 | </table> |
---|
385 | <a class="anchor" name="d0" doxytag="TrackManager::findTrackElementByID" ></a><p> |
---|
386 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
387 | <tr> |
---|
388 | <td class="mdRow"> |
---|
389 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
390 | <tr> |
---|
391 | <td class="md" nowrap valign="top"> <a class="el" href="../../d3/dce/structTrackManager_1_1TrackElement.html">TrackElement</a> TrackManager::findTrackElementByID </td> |
---|
392 | <td class="md" valign="top">( </td> |
---|
393 | <td class="md" nowrap valign="top">int </td> |
---|
394 | <td class="mdname1" valign="top" nowrap> <em>trackID</em> </td> |
---|
395 | <td class="md" valign="top"> ) </td> |
---|
396 | <td class="md" nowrap><code> [private]</code></td> |
---|
397 | </tr> |
---|
398 | </table> |
---|
399 | </td> |
---|
400 | </tr> |
---|
401 | </table> |
---|
402 | <table cellspacing=5 cellpadding=0 border=0> |
---|
403 | <tr> |
---|
404 | <td> |
---|
405 | |
---|
406 | </td> |
---|
407 | <td> |
---|
408 | |
---|
409 | <p> |
---|
410 | Searches for a given trackID. |
---|
411 | <p> |
---|
412 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
413 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
414 | <tr><td></td><td valign=top><em>trackID</em> </td><td>the trackID to search for. </td></tr> |
---|
415 | </table> |
---|
416 | </dl> |
---|
417 | <dl compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="../../d3/dce/structTrackManager_1_1TrackElement.html">TrackElement</a> #trackID if found, NULL otherways. </dd></dl> |
---|
418 | </td> |
---|
419 | </tr> |
---|
420 | </table> |
---|
421 | <a class="anchor" name="a8" doxytag="TrackManager::fork" ></a><p> |
---|
422 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
423 | <tr> |
---|
424 | <td class="mdRow"> |
---|
425 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
426 | <tr> |
---|
427 | <td class="md" nowrap valign="top"> void TrackManager::fork </td> |
---|
428 | <td class="md" valign="top">( </td> |
---|
429 | <td class="md" nowrap valign="top">int </td> |
---|
430 | <td class="mdname" nowrap> <em>count</em>, </td> |
---|
431 | </tr> |
---|
432 | <tr> |
---|
433 | <td class="md" nowrap align="right"></td> |
---|
434 | <td></td> |
---|
435 | <td class="md" nowrap> </td> |
---|
436 | <td class="mdname" nowrap> <em>...</em></td> |
---|
437 | </tr> |
---|
438 | <tr> |
---|
439 | <td></td> |
---|
440 | <td class="md">) </td> |
---|
441 | <td class="md" colspan="2"></td> |
---|
442 | </tr> |
---|
443 | </table> |
---|
444 | </td> |
---|
445 | </tr> |
---|
446 | </table> |
---|
447 | <table cellspacing=5 cellpadding=0 border=0> |
---|
448 | <tr> |
---|
449 | <td> |
---|
450 | |
---|
451 | </td> |
---|
452 | <td> |
---|
453 | |
---|
454 | <p> |
---|
455 | adds some interessting non-linear movments through the level. |
---|
456 | <p> |
---|
457 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
458 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
459 | <tr><td></td><td valign=top><em>count</em> </td><td>The Count of childrens the current HotPoint will have.</td></tr> |
---|
460 | </table> |
---|
461 | </dl> |
---|
462 | If no HotPoint was defined the last added Point will be rendered into a fork. <br> |
---|
463 | If the HotPoint was defined as a savePoint the Point will <b>not</b> be set into a fork. </td> |
---|
464 | </tr> |
---|
465 | </table> |
---|
466 | <a class="anchor" name="a9" doxytag="TrackManager::forkV" ></a><p> |
---|
467 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
468 | <tr> |
---|
469 | <td class="mdRow"> |
---|
470 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
471 | <tr> |
---|
472 | <td class="md" nowrap valign="top"> void TrackManager::forkV </td> |
---|
473 | <td class="md" valign="top">( </td> |
---|
474 | <td class="md" nowrap valign="top">int </td> |
---|
475 | <td class="mdname" nowrap> <em>count</em>, </td> |
---|
476 | </tr> |
---|
477 | <tr> |
---|
478 | <td class="md" nowrap align="right"></td> |
---|
479 | <td></td> |
---|
480 | <td class="md" nowrap>int * </td> |
---|
481 | <td class="mdname" nowrap> <em>trackIDs</em></td> |
---|
482 | </tr> |
---|
483 | <tr> |
---|
484 | <td></td> |
---|
485 | <td class="md">) </td> |
---|
486 | <td class="md" colspan="2"></td> |
---|
487 | </tr> |
---|
488 | </table> |
---|
489 | </td> |
---|
490 | </tr> |
---|
491 | </table> |
---|
492 | <table cellspacing=5 cellpadding=0 border=0> |
---|
493 | <tr> |
---|
494 | <td> |
---|
495 | |
---|
496 | </td> |
---|
497 | <td> |
---|
498 | |
---|
499 | <p> |
---|
500 | adds some interessting non-linear movments through the level. |
---|
501 | <p> |
---|
502 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
503 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
504 | <tr><td></td><td valign=top><em>count</em> </td><td>The Count of childrens the current HotPoint will have. </td></tr> |
---|
505 | <tr><td></td><td valign=top><em>trackIDs</em> </td><td>A Pointer to an Array of ints which will hold the trackID's (the user will have to reserve space for this).</td></tr> |
---|
506 | </table> |
---|
507 | </dl> |
---|
508 | <dl compact><dt><b>See also:</b></dt><dd>void <a class="el" href="../../dd/d41/classTrackManager.html#a8">TrackManager::fork</a>(int count, ...) </dd></dl> |
---|
509 | </td> |
---|
510 | </tr> |
---|
511 | </table> |
---|
512 | <a class="anchor" name="a11" doxytag="TrackManager::join" ></a><p> |
---|
513 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
514 | <tr> |
---|
515 | <td class="mdRow"> |
---|
516 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
517 | <tr> |
---|
518 | <td class="md" nowrap valign="top"> void TrackManager::join </td> |
---|
519 | <td class="md" valign="top">( </td> |
---|
520 | <td class="md" nowrap valign="top">int </td> |
---|
521 | <td class="mdname" nowrap> <em>count</em>, </td> |
---|
522 | </tr> |
---|
523 | <tr> |
---|
524 | <td class="md" nowrap align="right"></td> |
---|
525 | <td></td> |
---|
526 | <td class="md" nowrap> </td> |
---|
527 | <td class="mdname" nowrap> <em>...</em></td> |
---|
528 | </tr> |
---|
529 | <tr> |
---|
530 | <td></td> |
---|
531 | <td class="md">) </td> |
---|
532 | <td class="md" colspan="2"></td> |
---|
533 | </tr> |
---|
534 | </table> |
---|
535 | </td> |
---|
536 | </tr> |
---|
537 | </table> |
---|
538 | <table cellspacing=5 cellpadding=0 border=0> |
---|
539 | <tr> |
---|
540 | <td> |
---|
541 | |
---|
542 | </td> |
---|
543 | <td> |
---|
544 | |
---|
545 | <p> |
---|
546 | joins some tracks together again. |
---|
547 | <p> |
---|
548 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
549 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
550 | <tr><td></td><td valign=top><em>count</em> </td><td>The count of Paths to join.</td></tr> |
---|
551 | </table> |
---|
552 | </dl> |
---|
553 | Join will set the localTime to the longest time a Path has to get to this Point. <br> |
---|
554 | Join will join all curves to the first curve. </td> |
---|
555 | </tr> |
---|
556 | </table> |
---|
557 | <a class="anchor" name="a12" doxytag="TrackManager::joinV" ></a><p> |
---|
558 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
559 | <tr> |
---|
560 | <td class="mdRow"> |
---|
561 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
562 | <tr> |
---|
563 | <td class="md" nowrap valign="top"> void TrackManager::joinV </td> |
---|
564 | <td class="md" valign="top">( </td> |
---|
565 | <td class="md" nowrap valign="top">int </td> |
---|
566 | <td class="mdname" nowrap> <em>count</em>, </td> |
---|
567 | </tr> |
---|
568 | <tr> |
---|
569 | <td class="md" nowrap align="right"></td> |
---|
570 | <td></td> |
---|
571 | <td class="md" nowrap>int * </td> |
---|
572 | <td class="mdname" nowrap> <em>trackIDs</em></td> |
---|
573 | </tr> |
---|
574 | <tr> |
---|
575 | <td></td> |
---|
576 | <td class="md">) </td> |
---|
577 | <td class="md" colspan="2"></td> |
---|
578 | </tr> |
---|
579 | </table> |
---|
580 | </td> |
---|
581 | </tr> |
---|
582 | </table> |
---|
583 | <table cellspacing=5 cellpadding=0 border=0> |
---|
584 | <tr> |
---|
585 | <td> |
---|
586 | |
---|
587 | </td> |
---|
588 | <td> |
---|
589 | |
---|
590 | <p> |
---|
591 | joins some tracks together again. |
---|
592 | <p> |
---|
593 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
594 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
595 | <tr><td></td><td valign=top><em>count</em> </td><td>The count of Paths to join. </td></tr> |
---|
596 | <tr><td></td><td valign=top><em>trackIDs</em> </td><td>an Array with the trackID's to join</td></tr> |
---|
597 | </table> |
---|
598 | </dl> |
---|
599 | <dl compact><dt><b>See also:</b></dt><dd>void <a class="el" href="../../dd/d41/classTrackManager.html#a11">TrackManager::join</a>(int count, ...) </dd></dl> |
---|
600 | </td> |
---|
601 | </tr> |
---|
602 | </table> |
---|
603 | <a class="anchor" name="a4" doxytag="TrackManager::setLength" ></a><p> |
---|
604 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
605 | <tr> |
---|
606 | <td class="mdRow"> |
---|
607 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
608 | <tr> |
---|
609 | <td class="md" nowrap valign="top"> void TrackManager::setLength </td> |
---|
610 | <td class="md" valign="top">( </td> |
---|
611 | <td class="md" nowrap valign="top">float </td> |
---|
612 | <td class="mdname1" valign="top" nowrap> <em>time</em> </td> |
---|
613 | <td class="md" valign="top"> ) </td> |
---|
614 | <td class="md" nowrap></td> |
---|
615 | </tr> |
---|
616 | </table> |
---|
617 | </td> |
---|
618 | </tr> |
---|
619 | </table> |
---|
620 | <table cellspacing=5 cellpadding=0 border=0> |
---|
621 | <tr> |
---|
622 | <td> |
---|
623 | |
---|
624 | </td> |
---|
625 | <td> |
---|
626 | |
---|
627 | <p> |
---|
628 | Sets the length of the current path in seconds. |
---|
629 | <p> |
---|
630 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
631 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
632 | <tr><td></td><td valign=top><em>time</em> </td><td>The length in seconds. </td></tr> |
---|
633 | </table> |
---|
634 | </dl> |
---|
635 | </td> |
---|
636 | </tr> |
---|
637 | </table> |
---|
638 | <a class="anchor" name="a7" doxytag="TrackManager::setSavePoint" ></a><p> |
---|
639 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
640 | <tr> |
---|
641 | <td class="mdRow"> |
---|
642 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
643 | <tr> |
---|
644 | <td class="md" nowrap valign="top"> void TrackManager::setSavePoint </td> |
---|
645 | <td class="md" valign="top">( </td> |
---|
646 | <td class="md" nowrap valign="top">void </td> |
---|
647 | <td class="mdname1" valign="top" nowrap> </td> |
---|
648 | <td class="md" valign="top"> ) </td> |
---|
649 | <td class="md" nowrap></td> |
---|
650 | </tr> |
---|
651 | </table> |
---|
652 | </td> |
---|
653 | </tr> |
---|
654 | </table> |
---|
655 | <table cellspacing=5 cellpadding=0 border=0> |
---|
656 | <tr> |
---|
657 | <td> |
---|
658 | |
---|
659 | </td> |
---|
660 | <td> |
---|
661 | |
---|
662 | <p> |
---|
663 | Sets the last HotPoint into a savePoint. |
---|
664 | <p> |
---|
665 | If no HotPoint was defined the last added Point will be rendered into a savePoint. <br> |
---|
666 | If the HotPoint was defined as a fork the Point will <b>not</b> be set into a savePoint. </td> |
---|
667 | </tr> |
---|
668 | </table> |
---|
669 | <a class="anchor" name="a15" doxytag="TrackManager::tick" ></a><p> |
---|
670 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
671 | <tr> |
---|
672 | <td class="mdRow"> |
---|
673 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
674 | <tr> |
---|
675 | <td class="md" nowrap valign="top"> void TrackManager::tick </td> |
---|
676 | <td class="md" valign="top">( </td> |
---|
677 | <td class="md" nowrap valign="top">float </td> |
---|
678 | <td class="mdname1" valign="top" nowrap> <em>dt</em> </td> |
---|
679 | <td class="md" valign="top"> ) </td> |
---|
680 | <td class="md" nowrap></td> |
---|
681 | </tr> |
---|
682 | </table> |
---|
683 | </td> |
---|
684 | </tr> |
---|
685 | </table> |
---|
686 | <table cellspacing=5 cellpadding=0 border=0> |
---|
687 | <tr> |
---|
688 | <td> |
---|
689 | |
---|
690 | </td> |
---|
691 | <td> |
---|
692 | |
---|
693 | <p> |
---|
694 | Advances the local-time of the Track around dt. |
---|
695 | <p> |
---|
696 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
697 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
698 | <tr><td></td><td valign=top><em>dt</em> </td><td>The time about which to advance. </td></tr> |
---|
699 | </table> |
---|
700 | </dl> |
---|
701 | </td> |
---|
702 | </tr> |
---|
703 | </table> |
---|
704 | <a class="anchor" name="a2" doxytag="TrackManager::workOn" ></a><p> |
---|
705 | <table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> |
---|
706 | <tr> |
---|
707 | <td class="mdRow"> |
---|
708 | <table cellpadding="0" cellspacing="0" border="0"> |
---|
709 | <tr> |
---|
710 | <td class="md" nowrap valign="top"> void TrackManager::workOn </td> |
---|
711 | <td class="md" valign="top">( </td> |
---|
712 | <td class="md" nowrap valign="top">int </td> |
---|
713 | <td class="mdname1" valign="top" nowrap> <em>trackID</em> </td> |
---|
714 | <td class="md" valign="top"> ) </td> |
---|
715 | <td class="md" nowrap></td> |
---|
716 | </tr> |
---|
717 | </table> |
---|
718 | </td> |
---|
719 | </tr> |
---|
720 | </table> |
---|
721 | <table cellspacing=5 cellpadding=0 border=0> |
---|
722 | <tr> |
---|
723 | <td> |
---|
724 | |
---|
725 | </td> |
---|
726 | <td> |
---|
727 | |
---|
728 | <p> |
---|
729 | Sets the trackID we are working on. |
---|
730 | <p> |
---|
731 | <dl compact><dt><b>Parameters:</b></dt><dd> |
---|
732 | <table border="0" cellspacing="2" cellpadding="0"> |
---|
733 | <tr><td></td><td valign=top><em>trackID</em> </td><td>the trackID we are working on </td></tr> |
---|
734 | </table> |
---|
735 | </dl> |
---|
736 | </td> |
---|
737 | </tr> |
---|
738 | </table> |
---|
739 | <hr>The documentation for this class was generated from the following files:<ul> |
---|
740 | <li><a class="el" href="../../d6/d53/track__manager_8h-source.html">track_manager.h</a><li>track_manager.cc</ul> |
---|
741 | <hr size="1"><address style="align: right;"><small>Generated on Tue Jan 4 05:51:08 2005 for Orxonox by |
---|
742 | <a href="http://www.doxygen.org/index.html"> |
---|
743 | <img src="../../doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address> |
---|
744 | </body> |
---|
745 | </html> |
---|