badguy/walking_badguy.[ch]pp: Added the add_velocity() method.
authorFlorian Forster <supertux@octo.it>
Tue, 2 Mar 2010 11:20:33 +0000 (11:20 +0000)
committerFlorian Forster <supertux@octo.it>
Tue, 2 Mar 2010 11:20:33 +0000 (11:20 +0000)
commitcc40de7c80476cbc86d8bbf4447fc3cc3809adc9
tree97bc65cb7bd5c19a2775278b3b3809792add370c
parent52a3f8441f744a7850f0235e30d32afbc7577e8a
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).

SVN-Revision: 6508
src/badguy/walking_badguy.cpp
src/badguy/walking_badguy.hpp