factored out initFx method

refactored creation of explosion FX
This commit is contained in:
devZoGok
2025-06-07 20:49:06 +03:00
parent 2638f9b3a1
commit 5421e6003f
11 changed files with 238 additions and 221 deletions
+1 -3
View File
@@ -56,13 +56,11 @@ namespace battleship{
virtual void initHitbox();
virtual void destroyHitbox();
virtual void destroySound();
virtual void initSound();
virtual void initSound(){}
Type type;
int id;
Player *player;
sf::SoundBuffer *deathSfxBuffer;
sf::Sound *deathSfx;
vb01::Model *model = nullptr;
vb01::Node *hitbox = nullptr;
vb01::Vector3 pos = vb01::Vector3(0, 0, 0), upVec = vb01::Vector3(0, 1, 0), dirVec = vb01::Vector3(0, 0, 1), leftVec = vb01::Vector3(1, 0, 0), corners[8];