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