DI-Guy SDK Documentation  13.7
diguyMotionPosture.h File Reference

Contains the diguyMotionPosture enumeration and utility function declarations. More...

#include <declspec_diguy.h>

Go to the source code of this file.

Macros

#define CPLUSPLUS_ONLY
 

Enumerations

enum  diguyMotionPosture {
  DIGUY_MOTION_POSTURE_UPRIGHT = 0, DIGUY_MOTION_POSTURE_CROUCHED, DIGUY_MOTION_POSTURE_PRONE, DIGUY_MOTION_POSTURE_SITTING,
  DIGUY_MOTION_POSTURE_KNEELING, DIGUY_MOTION_POSTURE_SWIMMING, DIGUY_MOTION_POSTURE_PARACHUTING, DIGUY_MOTION_POSTURE_JUMPING,
  DIGUY_MOTION_POSTURE_SQUATTING, DIGUY_MOTION_POSTURE_WADING, DIGUY_MOTION_POSTURE_UNKNOWN, DIGUY_MOTION_POSTURE_ANY,
  DIGUY_MOTION_POSTURE_COUNT
}
 

Functions

const char * diguy_motion_posture_to_string (diguyMotionPosture posture)
 This function converts the passed posture enumeration into a NULL-terminated C-style string. More...
 
diguyMotionPosture diguy_motion_posture_from_string (const char *string)
 This function converts the passed C-style string into an enumerated value. More...
 

Detailed Description

Contains the diguyMotionPosture enumeration and utility function declarations.

Macro Definition Documentation

#define CPLUSPLUS_ONLY

Enumeration Type Documentation

Enumerator
DIGUY_MOTION_POSTURE_UPRIGHT 
DIGUY_MOTION_POSTURE_CROUCHED 
DIGUY_MOTION_POSTURE_PRONE 
DIGUY_MOTION_POSTURE_SITTING 
DIGUY_MOTION_POSTURE_KNEELING 
DIGUY_MOTION_POSTURE_SWIMMING 
DIGUY_MOTION_POSTURE_PARACHUTING 
DIGUY_MOTION_POSTURE_JUMPING 
DIGUY_MOTION_POSTURE_SQUATTING 
DIGUY_MOTION_POSTURE_WADING 
DIGUY_MOTION_POSTURE_UNKNOWN 
DIGUY_MOTION_POSTURE_ANY 
DIGUY_MOTION_POSTURE_COUNT 

Function Documentation

const char* diguy_motion_posture_to_string ( diguyMotionPosture  posture)

This function converts the passed posture enumeration into a NULL-terminated C-style string.

Returns:

C-style string identifying posture

Callable From:

  • C++
  • Script
diguyMotionPosture diguy_motion_posture_from_string ( const char *  string)

This function converts the passed C-style string into an enumerated value.

Postures are used in functions such as diguyCharacter::get_action_from_description().

Returns:

enumeration value of posture

Callable From:

  • C++
  • Script