18 lines
243 B
C++
18 lines
243 B
C++
|
#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);
|
||
|
}
|
||
|
|
||
|
}
|