OSDN Git Service

[denncoCreator] alpha 2.0 - wrap up
[dennco/denncoCreator.git] / Source / engine / layer1 / TKReceptor.h
index c9d61f9..fc2432b 100644 (file)
 #ifndef __INCLUDE_TKRECEPTOR__
 #define __INCLUDE_TKRECEPTOR__
 
+#include <limits>
+
 class TKCell;
 class TKAxonTerminal;
 
 class TKReceptor
 {
 public:
-       TKReceptor(TKCell *theOwner) : mOwner(theOwner), mTerminal(0) {}
+    TKReceptor(TKCell *theOwner) : mOwner(theOwner), mTerminal(0), mValue(std::numeric_limits<float>::quiet_NaN()) {}
     virtual ~TKReceptor() {}
 
-    void            setTarget(TKAxonTerminal *theTerminal);
-    TKAxonTerminal* getTarget() const { return mTerminal; }
-    TKCell*         getOwnerCell() const { return mOwner; }
-
-    float           getValue();
+    void        setTarget(TKAxonTerminal *theTerminal);
+    bool        update();
+    float       getValue();
                
-private:
+protected:
        TKCell *mOwner;
        TKAxonTerminal *mTerminal;
+    float mValue;
 };
 
 #endif