summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/modules/interpreter/ball_tracker.h
diff options
context:
space:
mode:
authorsicarius <devnull@localhost>2007-02-22 21:59:02 +0100
committersicarius <devnull@localhost>2007-02-22 21:59:02 +0100
commitf544ab78229d3a4d54b910135ba61bb816009589 (patch)
tree6b1d9aad746299631a0b67661c2d2be62b5e7525 /source/Concept/Framework/modules/interpreter/ball_tracker.h
parentdc8b1cde313f3f8a60462187bbeeea4277fd0313 (diff)
downloadrc2007-soccer-f544ab78229d3a4d54b910135ba61bb816009589.tar
rc2007-soccer-f544ab78229d3a4d54b910135ba61bb816009589.zip
The Last Day ?
Diffstat (limited to 'source/Concept/Framework/modules/interpreter/ball_tracker.h')
-rwxr-xr-xsource/Concept/Framework/modules/interpreter/ball_tracker.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/Concept/Framework/modules/interpreter/ball_tracker.h b/source/Concept/Framework/modules/interpreter/ball_tracker.h
index c62f05e..cb90ff2 100755
--- a/source/Concept/Framework/modules/interpreter/ball_tracker.h
+++ b/source/Concept/Framework/modules/interpreter/ball_tracker.h
@@ -11,6 +11,8 @@ public:
this->parent = NULL;
this->moduleId = 0;
this->direction = EMPTY_FLOAT;
+ this->ballHeldCounter = 0;
+ this->ballHeld = false;
}
Ball_Tracker(uint32 trackerId)
@@ -18,10 +20,14 @@ public:
this->parent = NULL;
this->moduleId = trackerId;
this->direction = EMPTY_FLOAT;
+ this->ballHeldCounter = 0;
+ this->ballHeld = false;
}
protected:
float direction;
+ uint8 ballHeldCounter;
+ bool ballHeld;
public:
void Update();
@@ -33,12 +39,12 @@ public:
bool KnowsBallDirection()
{
- return direction != EMPTY_FLOAT;
+ return (direction != EMPTY_FLOAT);
}
bool RobotHasBall()
{
- //fill me!
+ return ballHeld;
}
};