2008-07-26 07:19:13 +00:00
|
|
|
// MagicCarpet.hxx -- interface to the "Magic Carpet" flight model
|
|
|
|
//
|
|
|
|
// Written by Curtis Olson, started October 1999.
|
|
|
|
//
|
|
|
|
// Copyright (C) 1999 Curtis L. Olson - http://www.flightgear.org/~curt
|
|
|
|
//
|
|
|
|
// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
//
|
|
|
|
// $Id$
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _MAGICCARPET_HXX
|
|
|
|
#define _MAGICCARPET_HXX
|
|
|
|
|
|
|
|
|
|
|
|
#include <FDM/flight.hxx>
|
|
|
|
|
|
|
|
|
2018-04-03 12:21:33 +02:00
|
|
|
class FGMagicCarpet : public FGInterface
|
|
|
|
{
|
2008-07-26 07:19:13 +00:00
|
|
|
public:
|
|
|
|
FGMagicCarpet( double dt );
|
|
|
|
~FGMagicCarpet();
|
|
|
|
|
2018-04-03 10:41:27 +02:00
|
|
|
// Subsystem API.
|
|
|
|
void init() override;
|
|
|
|
void update(double dt) override;
|
2018-05-05 11:38:11 +02:00
|
|
|
|
|
|
|
// Subsystem identification.
|
|
|
|
static const char* staticSubsystemClassId() { return "magic"; }
|
2008-07-26 07:19:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _MAGICCARPET_HXX
|