Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

KoduConditionGamepad.h

Go to the documentation of this file.
00001 #ifndef KODU_CONDITION_GAMEPAD_H_
00002 #define KODU_CONDITION_GAMEPAD_H_
00003 #include "Kodu/Primitives/KoduCondition.h"
00004 #include <iostream>
00005 
00006 namespace Kodu {
00007   class KoduWorld;
00008   class KoduConditionGamepad : public KoduCondition {
00009   public:
00010     KoduConditionGamepad(int src,float value)
00011     : KoduCondition("KoduConditionGamepad", KoduCondition::CT_GAMEPAD),
00012       input(src),
00013       position(value)
00014     { }
00015      
00016     ~KoduConditionGamepad() { }
00017 
00018     KoduConditionGamepad& operator=(const KoduConditionGamepad& kCondition){
00019       if (this != &kCondition) {
00020         KoduCondition::operator=(kCondition);
00021         input = kCondition.input;
00022         position = kCondition.position;
00023       }
00024       return *this;
00025     }
00026     
00027   virtual bool evaluate(const KoduWorld&);
00028   
00029   private:
00030     int input;
00031     float position;
00032   };
00033 }
00034 
00035 #endif

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