diff options
author | sicarius <devnull@localhost> | 2007-02-26 22:25:01 +0100 |
---|---|---|
committer | sicarius <devnull@localhost> | 2007-02-26 22:25:01 +0100 |
commit | f61eb900879fe941460a284ff9e4681b0958b944 (patch) | |
tree | e32e6e091b0d025e071f3eab1dbf52c04d107d1d /source/Concept/Framework/modules/interpreter/ball_tracker.h | |
parent | 343397ecf6e8ba9ca94fc61e27c241139eff120b (diff) | |
download | rc2007-soccer-f61eb900879fe941460a284ff9e4681b0958b944.tar rc2007-soccer-f61eb900879fe941460a284ff9e4681b0958b944.zip |
SoccerTeam, Stuff from Magdeburg
Diffstat (limited to 'source/Concept/Framework/modules/interpreter/ball_tracker.h')
-rwxr-xr-x | source/Concept/Framework/modules/interpreter/ball_tracker.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/Concept/Framework/modules/interpreter/ball_tracker.h b/source/Concept/Framework/modules/interpreter/ball_tracker.h index cb90ff2..756a09f 100755 --- a/source/Concept/Framework/modules/interpreter/ball_tracker.h +++ b/source/Concept/Framework/modules/interpreter/ball_tracker.h @@ -12,7 +12,6 @@ public: this->moduleId = 0;
this->direction = EMPTY_FLOAT;
this->ballHeldCounter = 0;
- this->ballHeld = false;
}
Ball_Tracker(uint32 trackerId)
@@ -21,13 +20,11 @@ public: this->moduleId = trackerId;
this->direction = EMPTY_FLOAT;
this->ballHeldCounter = 0;
- this->ballHeld = false;
}
protected:
float direction;
uint8 ballHeldCounter;
- bool ballHeld;
public:
void Update();
@@ -42,9 +39,9 @@ public: return (direction != EMPTY_FLOAT);
}
- bool RobotHasBall()
+ bool HasBall()
{
- return ballHeld;
+ return (ballHeldCounter >= 3);
}
};
|