DI-Guy C++ SDK Reference  13.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
diguyCharacterGuide.h
Go to the documentation of this file.
1 
2 /*********************************************************************
3  ** Copyright (c) 1992-2014 VT MAK
4  ** All rights reserved.
5  *********************************************************************/
6 
7 
8 /*********************************************************************
9  **
10  *t diguyCharacterGuide
11  **
12  */
13 
14 #ifndef __diguyCharacterGuide_H
15 #define __diguyCharacterGuide_H
16 
17 
18 #ifdef SWIG
19 %module diguyCharacterGuide
20 #else
21 #define CPLUSPLUS_ONLY
22 #endif
23 
24 #ifdef CPLUSPLUS_ONLY
25 class bdiScenarioCharacterGuide;
26 #endif
27 
28 
29 #include <declspec_diguy.h>
30 
31 /*****************************************************************************/
301 class BDI_DECLSPEC_diguy diguyCharacterGuide
302 {
303 
304 public:
305 
306 /*****************************************************************************/
316  /*l
317  *b Returns:
318  **
319  ** name of the guide
320  */
321  const char* get_name();
322 
323  /*l
324  *b Description:
325  **
326  ** This function sets the name of this object.
327  **
328  *b Returns:
329  **
330  ** 0 on success, -1 on failure
331  */
332  int set_name(const char* name);
333 
334  /*l
335  *b Description:
336  **
337  ** This function enables or disables this guide.
338  **
339  *b Arguments:
340  **
341  *a enabled - pass 1 to enable to guide, 0 to disable
342  **
343  *b Returns:
344  **
345  ** 0 on success, -1 on failure
346  */
347  int set_enabled(int enabled);
348 
349  /*l
350  *b Returns:
351  **
352  ** whether this guide is enabled; see set_enabled()
353  */
354  int get_enabled();
355 
356  /*l
357  *b Description:
358  **
359  ** This function returns whether the character controlled
360  ** by this guide has reached its desired position.
361  **
362  *b Returns:
363  **
364  ** 1 if position reached, 0 if not
365  */
366  int get_position_acquired();
367 
368  /*l
369  *b Description:
370  **
371  ** This function manually sets whether the character controlled
372  ** by this guide has reached its desired position. Normally
373  ** this is determined automatically by the guide.
374  **
375  ** Note that calling this function may trigger a callback of
376  ** diguyCharacter::CALLBACK_ID_GUIDE_POSITION_ACQUIRED or
377  ** diguyCharacter::CALLBACK_ID_GUIDE_POSITION_UNACQUIRED.
378  **
379  *b Arguments:
380  **
381  *a acquired - pass 1 to set the desired position as acquired,
382  *a 0 as unacquired
383  */
384  void set_position_acquired(int acquired);
385 
386  /*l
387  *b Description:
388  **
389  ** This function returns whether the character controlled
390  ** by this guide has reached its desired orientation.
391  **
392  *b Returns:
393  **
394  ** 1 if orientation reached, 0 if not
395  */
396  int get_orientation_acquired();
397 
398  /*l
399  *b Description:
400  **
401  ** Similar to set_position_acquired(), but for orientation.
402  **
403  *b Arguments:
404  **
405  *a acquired - pass 1 to set the desired orientation as acquired,
406  *a 0 as unacquired
407  */
408  void set_orientation_acquired(int acquired);
409 
410  /*l
411  *b Description:
412  **
413  ** This function sets a parameter for this guide's
414  ** guide algorithm.
415  **
416  *b Arguments:
417  **
418  *a parameter - name of the parameter to set
419  *a value - new value of the parameter
420  **
421  *b Returns:
422  **
423  ** 0 on success, -1 on failure
424  */
425  int set_guide_algorithm_float_parameter(const char* parameter,
426  float value);
427 
428  /*l
429  *b Description:
430  **
431  ** This function gets the current setting for a parameter of
432  ** this guide's guide algorithm.
433  **
434  *b Arguments:
435  **
436  *a parameter - name of the parameter to get
437  **
438  *b Returns:
439  **
440  ** current value of parameter
441  */
442  float get_guide_algorithm_float_parameter(const char* parameter);
443 
444  /*l
445  *b Description:
446  **
447  ** This function sets a parameter for this guide's
448  ** guide algorithm.
449  **
450  *b Arguments:
451  **
452  *a parameter - name of the parameter to set
453  *a value - new value of the parameter
454  **
455  *b Returns:
456  **
457  ** 0 on success, -1 on failure
458  */
459  int set_guide_algorithm_string_parameter(const char* parameter,
460  const char * value);
461 
462  /*l
463  *b Description:
464  **
465  ** This function gets the current setting for a parameter of
466  ** this guide's guide algorithm.
467  **
468  *b Arguments:
469  **
470  *a parameter - name of the parameter to get
471  **
472  *b Returns:
473  **
474  ** current value of parameter
475  */
476  const char * get_guide_algorithm_string_parameter(const char* parameter);
477 
478  void get_current_desired_position(float *x, float *y, float *z);
479  void get_current_desired_orientation(float *rz);
480 
485 #ifdef CPLUSPLUS_ONLY
486 
487  bdiScenarioCharacterGuide* get_scripted_object() {return m_scripted_object;}
488 
489 private:
490 
491  /*l
492  ** A private constructor.
493  */
494  diguyCharacterGuide(bdiScenarioCharacterGuide* scripted_object);
495 
496  /*l
497  ** A private destructor.
498  */
499  virtual ~diguyCharacterGuide();
500 
501  /*l
502  ** A pointer to internal data.
503  */
504  bdiScenarioCharacterGuide* m_scripted_object;
505 
506  friend class bdiScenarioCharacterGuide;
507 
508 #endif
509 
510 };
511 
512 
513 #endif /* __diguyCharacterGuide_H */
514 
515 
516 /*********************************************************************
517  ** Copyright (c) 1992-2014 VT MAK
518  ** All rights reserved.
519  *********************************************************************/
520