Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

KoduGiveEvent.h

Go to the documentation of this file.
00001 #ifndef _INCLUDE_KoduGiveEvent_h_
00002 #define _INCLUDE_KoduGiveEvent_h_
00003 
00004 #include <string>
00005 
00006 #include "Events/Kodu/KoduEventBase.h"
00007 
00008 class KoduGiveEvent : public KoduEventBase {
00009  private:
00010     float _turn;
00011     std::string _objType;
00012 
00013  public:
00014   static const char* classID;
00015 
00016   KoduGiveEvent() : _turn(0), _objType("") {}
00017 
00018   ~KoduGiveEvent() {}
00019 
00020   virtual std::string getDescription(bool showTypeSpecific, unsigned int verbosity) const;
00021   virtual unsigned int getBinSize() const;
00022   virtual unsigned int saveBinaryBuffer(char buf[], unsigned int len) const;
00023   virtual unsigned int loadBinaryBuffer(const char buf[], unsigned int len);
00024 
00025     void setTurnAndObject(float turn, std::string objType);
00026     float getTurn() const;
00027     std::string getObjType() const;
00028 };
00029 
00030 /*! @file
00031  * @brief Kodu gives something to another character
00032  *
00033  * @author afranchu
00034  * @author medee
00035  */
00036 
00037 #endif

Tekkotsu v5.1CVS
Generated Mon May 9 04:58:43 2016 by Doxygen 1.6.3