aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/walk.cpp
diff options
context:
space:
mode:
authorStrangerke2011-10-21 17:27:34 +0200
committerStrangerke2011-10-22 06:30:04 +0200
commit727afcf4bd65fbdf1af9de2eab6657ccf653d5bf (patch)
tree8fc030e217d8a4c23bbb764a44867f69b070680b /engines/cge/walk.cpp
parent18521c6673121c8a1fc18028f6d5fc96a840ad05 (diff)
downloadscummvm-rg350-727afcf4bd65fbdf1af9de2eab6657ccf653d5bf.tar.gz
scummvm-rg350-727afcf4bd65fbdf1af9de2eab6657ccf653d5bf.tar.bz2
scummvm-rg350-727afcf4bd65fbdf1af9de2eab6657ccf653d5bf.zip
CGE: Add some doxygen comments
Diffstat (limited to 'engines/cge/walk.cpp')
-rw-r--r--engines/cge/walk.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/cge/walk.cpp b/engines/cge/walk.cpp
index 31ea1909d8..22c06a17c1 100644
--- a/engines/cge/walk.cpp
+++ b/engines/cge/walk.cpp
@@ -126,7 +126,10 @@ int Walk::distance(Sprite *spr) {
return dz - 1;
}
-
+/**
+ * Turn the character to a given direction
+ * @param d Direction
+ */
void Walk::turn(Dir d) {
Dir dir = (_dir == kDirNone) ? kDirSouth : _dir;
if (d != _dir) {
@@ -135,6 +138,9 @@ void Walk::turn(Dir d) {
}
}
+/**
+ * Stop the character and reset his direction
+ */
void Walk::park() {
if (_time == 0)
_time++;