From 727afcf4bd65fbdf1af9de2eab6657ccf653d5bf Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 21 Oct 2011 17:27:34 +0200 Subject: CGE: Add some doxygen comments --- engines/cge/walk.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engines/cge/walk.cpp') 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++; -- cgit v1.2.3