badguy/walking_badguy.[ch]pp: Added the add_velocity() method.
authorflorianf <florianf@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Tue, 2 Mar 2010 11:20:33 +0000 (11:20 +0000)
committerflorianf <florianf@837edb03-e0f3-0310-88ca-d4d4e8b29345>
Tue, 2 Mar 2010 11:20:33 +0000 (11:20 +0000)
commite7b3e730e595b19c0c9e5a72caca1d256c106ac9
tree97bc65cb7bd5c19a2775278b3b3809792add370c
parentb25573040c50611583dded114ee7483ee89b096e
badguy/walking_badguy.[ch]pp: Added the add_velocity() method.

The speed is simply added to the current velocity of the badguy. The walking
speed is regained using an acceleration of walk_speed/s, i.e. it takes one
second to get from zero to full speed again (or from twice the speed back to
normal).

git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6508 837edb03-e0f3-0310-88ca-d4d4e8b29345
src/badguy/walking_badguy.cpp
src/badguy/walking_badguy.hpp