mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
18 lines
329 B
C++
18 lines
329 B
C++
#include "torpedo.h"
|
|
|
|
namespace battleship{
|
|
using namespace vb01;
|
|
|
|
Torpedo::Torpedo(Unit *un, int id, Vector3 pos, Quaternion rot) : Projectile(un, id, pos, rot){}
|
|
|
|
void Torpedo::update(){
|
|
Projectile::update();
|
|
|
|
if(!remove){
|
|
checkSurfaceCollision(true);
|
|
if(remove) return;
|
|
checkUnitCollision();
|
|
}
|
|
}
|
|
}
|