Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

KoduActionGive.h

Go to the documentation of this file.
00001 #ifndef KODU_ACTION_GIVE_H_
00002 #define KODU_ACTION_GIVE_H_
00003 
00004 // INCLUDES
00005 // tekkodu
00006 #include "Kodu/Primitives/KoduAction.h"
00007 
00008 namespace Kodu {
00009 
00010     //! Kodu Action Give class (derived from Kodu Action)
00011     class KoduActionGive : public KoduAction {
00012     public:
00013         //! Constructor
00014         KoduActionGive()
00015           : KoduAction ("KoduActionGive", KoduAction::AT_GIVE, false, false)
00016         { }
00017 
00018         //! Copy constructor
00019         KoduActionGive(const KoduActionGive& kAction)
00020           : KoduAction(kAction)
00021         { }
00022         
00023         //! Destructor
00024         ~KoduActionGive() {
00025             // no explicit implementation
00026         }
00027         
00028         //! Assignment operator
00029         KoduActionGive& operator=(const KoduActionGive& kAction) {
00030             if (this != &kAction) {
00031                 KoduAction::operator=(kAction);
00032             }
00033             return *this;
00034         }
00035         
00036         //! Returns the target object (the object to grab)
00037         const DualCoding::ShapeRoot getTargetObject() const;
00038 
00039         //! Used to reinitialize certain variables (e.g. when switching to another page)
00040         virtual void reinitialize();
00041 
00042         //! Prints the attributes of a particular instance
00043         virtual void printAttrs() const;
00044     };
00045 }
00046 
00047 #endif // KODU_ACTION_GIVE_H_

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