GMoveAgent.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Raphael Langerhorst                             *
00003  *   raphael-langerhorst@gmx.at                                            *
00004  *                                                                         *
00005  *   Permission is hereby granted, free of charge, to any person obtaining *
00006  *   a copy of this software and associated documentation files (the       *
00007  *   "Software"), to deal in the Software without restriction, including   *
00008  *   without limitation the rights to use, copy, modify, merge, publish,   *
00009  *   distribute, sublicense, and/or sell copies of the Software, and to    *
00010  *   permit persons to whom the Software is furnished to do so, subject to *
00011  *   the following conditions:                                             *
00012  *                                                                         *
00013  *   The above copyright notice and this permission notice shall be        *
00014  *   included in all copies or substantial portions of the Software.       *
00015  *                                                                         *
00016  *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       *
00017  *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    *
00018  *   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*
00019  *   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR     *
00020  *   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
00021  *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *
00022  *   OTHER DEALINGS IN THE SOFTWARE.                                       *
00023  ***************************************************************************/
00024 
00025 #ifndef GBEGMOVEAGENTH
00026 #define GBEGMOVEAGENTH
00027 
00028 #include <GAgent.h>
00029 #include <GVector3.h>
00030 
00031 #include <qtimer.h>
00032 #include <qdatetime.h>
00033 
00034 namespace GBE
00035 {
00036 
00058 class GMoveAgent : public GCS::GAgent
00059 {
00060   Q_OBJECT
00061 
00062   protected:
00063   
00067     QTime Time;
00068 
00069   public:
00073     GMoveAgent();
00074 
00078     virtual ~GMoveAgent();
00079     
00080   protected:
00081     
00086     virtual void run();
00087     
00088   protected slots:
00089     
00098     virtual void updateForm();
00099 
00100   public slots:
00101   
00106     virtual QStringList getAvailableActions() const;
00107     
00111     virtual QString getActionDescription(const QString& action) const;
00112   
00120     virtual void performAction(const QString& action, QStringList params);
00121     
00125     virtual void initTranslationSpeed(const GCS::GVector3& speed);
00126     
00130     virtual void initRotationSpeed(const GCS::GVector3& speed);
00131     
00137     virtual void initSlowDownFactor(double factor);
00138     
00142     virtual void initUpdateInterval(unsigned long interval);
00143 };
00144 
00145 };
00146 
00147 #endif

Generated on Thu Nov 16 07:49:12 2006 for G System by  doxygen 1.4.7