Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

KoduActionDoNothing.h

Go to the documentation of this file.
00001 #ifndef KODU_ACTION_DO_NOTHING_H_
00002 #define KODU_ACTION_DO_NOTHING_H_
00003 
00004 // Kodu Library
00005 #include "Kodu/Primitives/KoduAction.h"
00006 
00007 namespace Kodu {
00008     
00009     class KoduActionDoNothing : public KoduAction {
00010     public:
00011         //! Constructor
00012         KoduActionDoNothing()
00013           : KoduAction("KoduActionDoNothing", KoduAction::AT_DO_NOTHING, false, false)
00014         { }
00015 
00016         //! Copy constructor
00017         KoduActionDoNothing(const KoduActionDoNothing& kAction)
00018           : KoduAction(kAction)
00019         { }
00020 
00021         //! Destructor
00022         ~KoduActionDoNothing() {
00023             // no explicit implementation
00024         }
00025 
00026         //! Assignment operator
00027         KoduActionDoNothing& operator=(const KoduActionDoNothing& kAction) {
00028             if (this != &kAction) {
00029                 KoduAction::operator=(kAction);
00030             }
00031             return *this;
00032         }
00033 
00034         //! Tests if the primitive argument is the same as the calling class
00035         static bool isSameTypeAs(const KoduPrimitive* kPrimitive) {
00036             return (dynamic_cast<const KoduActionDoNothing*>(kPrimitive) != NULL);
00037         }
00038 
00039         //! Used to reinitialize certain variables (e.g. when switching to another page)
00040         virtual void reinitialize() {
00041             // nothing to do
00042         }
00043         
00044         //! Prints the attributes of a particular instance
00045         virtual void printAttrs() const {
00046             KoduAction::printAttrs();
00047         }
00048     };
00049 }
00050 
00051 #endif // KODU_ACTION_DO_NOTHING_H_

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