2002-04-25 16:23:16 +00:00
|
|
|
// UFO.hxx -- interface to the "UFO" flight model
|
|
|
|
//
|
|
|
|
// Written by Curtis Olson, started October 1999.
|
|
|
|
// Slightly modified from MagicCarpet.hxx by Jonathan Polley, April 2002
|
|
|
|
//
|
|
|
|
// Copyright (C) 1999-2002 Curtis L. Olson - curt@flightgear.org
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License as
|
|
|
|
// published by the Free Software Foundation; either version 2 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful, but
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// General Public License for more details.
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _UFO_HXX
|
|
|
|
#define _UFO_HXX
|
|
|
|
|
|
|
|
|
|
|
|
#include "flight.hxx"
|
|
|
|
|
|
|
|
|
|
|
|
class FGUFO: public FGInterface {
|
2002-05-09 21:56:31 +00:00
|
|
|
double Throttle;
|
|
|
|
double Aileron;
|
|
|
|
double Elevator;
|
2002-04-25 16:23:16 +00:00
|
|
|
public:
|
|
|
|
FGUFO( double dt );
|
|
|
|
~FGUFO();
|
|
|
|
|
|
|
|
// reset flight params to a specific position
|
|
|
|
void init();
|
|
|
|
|
|
|
|
// update position based on inputs, positions, velocities, etc.
|
2002-05-11 16:28:50 +00:00
|
|
|
void update( double dt );
|
2002-04-25 16:23:16 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _UFO_HXX
|