]> git.mxchange.org Git - flightgear.git/blobdiff - src/Traffic/TrafficMgr.hxx
- rename fgcommand "set-mouse" to "set-cursor"
[flightgear.git] / src / Traffic / TrafficMgr.hxx
index 4dd3383f76ff388c14bb734ee3e6c9e06d2fa79d..4a46fcbeb7a68d9baccc65c68420c99dd5c0e62a 100644 (file)
@@ -14,7 +14,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  *
  *
  **************************************************************************/
@@ -34,8 +34,8 @@
 #include "Schedule.hxx"
 
 
-typedef vector<void *> IdList;
-typedef vector<void *>::iterator IdListIterator;
+typedef vector<int> IdList;
+typedef vector<int>::iterator IdListIterator;
 
 
 class FGTrafficManager : public SGSubsystem, public XMLVisitor
@@ -49,6 +49,7 @@ private:
     port, timeString, departurePort, departureTime, arrivalPort, arrivalTime,
     repeat, acType, airline, m_class, flighttype;
   int cruiseAlt;
+  int score, runCount;
   double radius, offset;
   bool heavy;
 
@@ -58,11 +59,11 @@ private:
 
 public:
   FGTrafficManager();
-  
+  ~FGTrafficManager();
   void init();
   void update(double time);
-  void release(void *ref);
-  bool isReleased(void *id);
+  void release(int ref);
+  bool isReleased(int id);
 
   // Some overloaded virtual XMLVisitor members
   virtual void startXML ();