5 #ifndef _SG_PERSONALITY_HXX
6 #define _SG_PERSONALITY_HXX 1
8 #include <simgear/compiler.h>
17 class SGPersonalityBranch : public ssgBranch {
19 void setDoubleValue( double value, SGAnimation *anim, int var_id, int var_num = 0 );
20 void setIntValue( int value, SGAnimation *anim, int var_id, int var_num = 0 );
21 double getDoubleValue( SGAnimation *anim, int var_id, int var_num = 0 ) const;
22 int getIntValue( SGAnimation *anim, int var_id, int var_num = 0 ) const;
24 SGPersonalityBranch *_old_current;
28 Key( SGAnimation *a, int i, int n = 0 ) : anim(a), var_id(i), var_num(n) {}
32 bool operator<( const Key &r ) const {
33 return anim < r.anim ||
34 ( anim == r.anim && ( var_id < r.var_id ||
35 ( var_id == r.var_id && var_num < r.var_num ) ) );
38 map<Key,double> _doubleValues;
39 map<Key,int> _intValues;
42 #endif // _SG_PERSONALITY_HXX