1 /*************************************************************************** 2 movobjinput.h - Input for moving objects 3 ------------------- 4 begin : ma dec 16 2002 5 copyright : (C) 2002 by CJP 6 email : cornware-cjp@users.sourceforge.net 7 ***************************************************************************/ 8 9 /*************************************************************************** 10 * * 11 * This program is free software; you can redistribute it and/or modify * 12 * it under the terms of the GNU General Public License as published by * 13 * the Free Software Foundation; either version 2 of the License, or * 14 * (at your option) any later version. * 15 * * 16 ***************************************************************************/ 17 18 #ifndef MOVOBJINPUT_H 19 #define MOVOBJINPUT_H 20 21 #include "message.h" 22 23 /** 24 *@author CJP 25 */ 26 27 class CMovObjInput : public CMessage { 28 public: 29 //Which CMessage-methods should be re-implemented? 30 CMovObjInput(); //Give reasonable start values 31 32 float m_Up, m_Forward, m_Backward, m_Right; 33 34 virtual bool setData(const CBinBuffer &, unsigned int &pos); 35 virtual CBinBuffer &getData(CBinBuffer &) const; 36 37 Uint8 m_MovObjID; 38 getType()39 virtual CMessageBuffer::eMessageType getType() const {return CMessageBuffer::movObjInput;} 40 }; 41 42 #endif 43