summaryrefslogtreecommitdiffstats
path: root/source/Concept/Framework/modules/executor/navigator.h
diff options
context:
space:
mode:
authormasterm <devnull@localhost>2007-02-23 00:04:02 +0100
committermasterm <devnull@localhost>2007-02-23 00:04:02 +0100
commite51f1c203897019ee5669e44d35cf1241514d442 (patch)
tree22cf71cf0c443e09c60aaa9adc318fea3d8d4505 /source/Concept/Framework/modules/executor/navigator.h
parentd8e83400c8780fdd04018cd2f59313a3e4533d71 (diff)
downloadrc2007-soccer-e51f1c203897019ee5669e44d35cf1241514d442.tar
rc2007-soccer-e51f1c203897019ee5669e44d35cf1241514d442.zip
++++ fixed navigator logics
Diffstat (limited to 'source/Concept/Framework/modules/executor/navigator.h')
-rwxr-xr-xsource/Concept/Framework/modules/executor/navigator.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/Concept/Framework/modules/executor/navigator.h b/source/Concept/Framework/modules/executor/navigator.h
index 7f4b36d..53fa74b 100755
--- a/source/Concept/Framework/modules/executor/navigator.h
+++ b/source/Concept/Framework/modules/executor/navigator.h
@@ -67,8 +67,18 @@ public:
return (targetX != EMPTY_FLOAT && targetY != EMPTY_FLOAT);
}
+ bool HasTargetAngle()
+ {
+ return (targetAngle != EMPTY_FLOAT);
+ }
+
bool TargetReached();
bool AngleReached();
+
+ bool IsMoving()
+ {
+ return (direction != EMPTY_FLOAT || rotationSpeed != 0);
+ }
};
#endif