Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Map/Obstacles/Obs_robot.cpp
- Revision:
- 0:b127c787a51b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Map/Obstacles/Obs_robot.cpp Sun May 24 12:30:47 2015 +0000 @@ -0,0 +1,13 @@ +#include "Obs_robot.h" + +Obs_robot::Obs_robot(float robotRadius, int id, float x, float y, float size, float temps):Obs_circle(robotRadius,id,x,y,size) +{ + this->temps = temps; +} + +void Obs_robot::update(float dt) +{ + temps -= dt; + if(temps <= 0) + desactivate(); +}