00001 #ifndef INCLUDED_LocomotionEvent_h_
00002 #define INCLUDED_LocomotionEvent_h_
00003
00004 #include "EventBase.h"
00005
00006
00007
00008
00009
00010
00011
00012
00013 class LocomotionEvent : public EventBase {
00014 public:
00015
00016
00017
00018
00019 LocomotionEvent() : EventBase(),x(0),y(0),a(0) {}
00020 LocomotionEvent(EventGeneratorID_t gid, unsigned int sid, EventTypeID_t tid, unsigned int dur=0) : EventBase(gid,sid,tid,dur),x(0),y(0),a(0) {}
00021 LocomotionEvent(EventGeneratorID_t gid, unsigned int sid, EventTypeID_t tid, unsigned int dur, const std::string& n, float mag) : EventBase(gid,sid,tid,dur,n,mag),x(0),y(0),a(0) {}
00022
00023
00024
00025 LocomotionEvent& setXYA(float X, float Y, float A) {
00026 x=X;
00027 y=Y;
00028 a=A;
00029 return *this;
00030 }
00031
00032 virtual std::string getDescription(bool showTypeSpecific=true, unsigned int verbosity=0) const;
00033
00034 virtual unsigned int getBinSize() const;
00035 virtual unsigned int LoadBuffer(const char buf[], unsigned int len);
00036 virtual unsigned int SaveBuffer(char buf[], unsigned int len) const;
00037
00038 float x;
00039 float y;
00040 float a;
00041 };
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 #endif