fysxasteroids/asteroids/RocketEntity.cc

18 lines
243 B
C++
Raw Normal View History

2010-04-05 23:38:59 +02:00
#include "Model.h"
#include "RocketEntity.h"
#include "Controller.h"
#include <GL/gl.h>
namespace asteroids {
void RocketEntity::Update (float delta_sec) {
mSecToLive -= delta_sec;
if (mSecToLive <= 0.)
Engine::KillEntity (mId);
}
}