mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
20 lines
561 B
C++
Executable File
20 lines
561 B
C++
Executable File
#include <model.h>
|
|
|
|
#include "torpedo.h"
|
|
|
|
using namespace game::core;
|
|
using namespace vb01;
|
|
|
|
namespace game{
|
|
namespace content{
|
|
Torpedo::Torpedo(Unit *unit, Vector3 pos, Vector3 dir, Vector3 left, Vector3 up, int id, int weaponTypeId, int weaponId) :
|
|
Projectile(unit, nullptr, pos, dir, left, up, id,weaponTypeId,weaponId) {this->damage = 50;}
|
|
|
|
void Torpedo::update() {
|
|
Projectile::update();
|
|
pos = pos + dirVec * speed;
|
|
node->setPosition(pos);
|
|
}
|
|
}
|
|
}
|