Files
PlanetFleet/torpedo.cpp
T
devZoGok 179f4c28ac factored out a state manager
using GameManager via a singleton
2021-10-30 08:09:30 +03:00

17 lines
557 B
C++
Executable File

#include "torpedo.h"
using namespace game::core;
namespace game{
namespace content{
Torpedo::Torpedo(Unit *unit, irr::core::vector3df pos, irr::core::vector3df dir, irr::core::vector3df left, irr::core::vector3df 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 += dirVec*speed;
node->setPosition(pos);
}
}
}