~ubuntu-branches/ubuntu/precise/flightgear/precise

« back to all changes in this revision

Viewing changes to src/AIModel/AIManager.hxx

  • Committer: Package Import Robot
  • Author(s): Ove Kaaven
  • Date: 2011-09-03 22:16:12 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20110903221612-2cjy0z7ztj5nkln5
Tags: 2.4.0-1
* New upstream release. Closes: #638588.
* Build-Depend on OpenSceneGraph 3.0, and the Subversion library.
* Recommend fgfs-scenery-base.
* Enable parallel builds (shorter compile times on multicore CPUs).
* Removed hack that tried to build without optimizations if
  building with optimizations fails.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
public:
47
47
 
48
48
    // A list of pointers to AI objects
49
 
    typedef list <osg::ref_ptr<FGAIBase> > ai_list_type;
 
49
    typedef list <SGSharedPtr<FGAIBase> > ai_list_type;
50
50
    typedef ai_list_type::iterator ai_list_iterator;
51
51
    typedef ai_list_type::const_iterator ai_list_const_iterator;
52
52
 
81
81
    inline double get_wind_from_east() const {return wind_from_east; }
82
82
    inline double get_wind_from_north() const {return wind_from_north; }
83
83
    inline double get_user_roll() const { return user_roll; }
 
84
    inline double get_user_agl() const { return user_altitude_agl; }
84
85
 
85
86
    int getNumAiObjects(void) const;
86
87
 
87
88
    void processScenario( const string &filename );
88
89
 
89
 
  static SGPropertyNode_ptr loadScenarioFile(const std::string& filename);
 
90
    static SGPropertyNode_ptr loadScenarioFile(const std::string& filename);
90
91
 
91
 
  static bool getStartPosition(const string& id, const string& pid,
92
 
                               SGGeod& geodPos, double& hdng, SGVec3d& uvw);
 
92
    static bool getStartPosition(const string& id, const string& pid,
 
93
        SGGeod& geodPos, double& hdng, SGVec3d& uvw);
93
94
 
94
95
private:
95
96
 
104
105
    SGPropertyNode_ptr user_latitude_node;
105
106
    SGPropertyNode_ptr user_longitude_node;
106
107
    SGPropertyNode_ptr user_altitude_node;
 
108
    SGPropertyNode_ptr user_altitude_agl_node;
107
109
    SGPropertyNode_ptr user_heading_node;
108
110
    SGPropertyNode_ptr user_pitch_node;
109
111
    SGPropertyNode_ptr user_yaw_node;
115
117
    double user_latitude;
116
118
    double user_longitude;
117
119
    double user_altitude;
 
120
    double user_altitude_agl;
118
121
    double user_heading;
119
122
    double user_pitch;
120
123
    double user_yaw;
121
124
    double user_roll;
122
125
    double user_speed;
 
126
    double user_agl;
123
127
    double wind_from_east;
124
128
    double wind_from_north;
125
129
    double _dt;