mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
removed many Irrlicht references
This commit is contained in:
+32
-29
@@ -4,57 +4,60 @@
|
||||
#include "util.h"
|
||||
#include "inGameAppState.h"
|
||||
|
||||
using namespace irr::io;
|
||||
using namespace irr::core;
|
||||
using namespace irr::video;
|
||||
using namespace irr::scene;
|
||||
using namespace game::util;
|
||||
using namespace sf;
|
||||
using namespace std;
|
||||
using namespace vb01;
|
||||
|
||||
namespace game{
|
||||
namespace content{
|
||||
void detonate(InGameAppState *inGameState,vector3df pos,vector3df dir){
|
||||
SoundBuffer *sfxBuffer=new SoundBuffer();
|
||||
Sound *sfx=nullptr;
|
||||
path p=PATH+"Sounds/Explosions/explosion0"+stringw(rand()%4)+".ogg";
|
||||
void detonate(InGameAppState *inGameState, Vector3 pos, Vector3 dir){
|
||||
sf::SoundBuffer *sfxBuffer = new sf::SoundBuffer();
|
||||
sf::Sound *sfx = nullptr;
|
||||
string p = PATH + "Sounds/Explosions/explosion0" + to_string(rand() % 4) + ".ogg";
|
||||
|
||||
if(sfxBuffer->loadFromFile(p.c_str())){
|
||||
sfx=new Sound(*sfxBuffer);
|
||||
sfx = new sf::Sound(*sfxBuffer);
|
||||
sfx->play();
|
||||
}
|
||||
|
||||
Fx fx;
|
||||
fx.initTime=getTime();
|
||||
fx.time=2500;
|
||||
fx.sfx=sfx;
|
||||
fx.initTime = getTime();
|
||||
fx.time = 2500;
|
||||
fx.sfx = sfx;
|
||||
inGameState->addFx(fx);
|
||||
}
|
||||
|
||||
void detonateDepthCharge(core::InGameAppState *inGameState, irr::core::vector3df){
|
||||
SoundBuffer *sfxBuffer=new SoundBuffer();
|
||||
Sound *sfx=nullptr;
|
||||
path p=PATH+"Sounds/Destroyers/depthCharge.ogg";
|
||||
void detonateDepthCharge(core::InGameAppState *inGameState, Vector3){
|
||||
sf::SoundBuffer *sfxBuffer = new sf::SoundBuffer();
|
||||
sf::Sound *sfx = nullptr;
|
||||
string p = PATH + "Sounds/Destroyers/depthCharge.ogg";
|
||||
|
||||
if(sfxBuffer->loadFromFile(p.c_str())){
|
||||
sfx=new Sound(*sfxBuffer);
|
||||
sfx = new sf::Sound(*sfxBuffer);
|
||||
sfx->play();
|
||||
}
|
||||
|
||||
Fx fx;
|
||||
fx.initTime=getTime();
|
||||
fx.time=2000;
|
||||
fx.sfx=sfx;
|
||||
fx.initTime = getTime();
|
||||
fx.time = 2000;
|
||||
fx.sfx = sfx;
|
||||
inGameState->addFx(fx);
|
||||
}
|
||||
|
||||
void detonateTorpedo(core::InGameAppState *inGameState, irr::core::vector3df){
|
||||
SoundBuffer *sfxBuffer=new SoundBuffer();
|
||||
Sound *sfx=nullptr;
|
||||
path p=PATH+"Sounds/Submarines/torpedo.ogg";
|
||||
void detonateTorpedo(core::InGameAppState *inGameState, Vector3){
|
||||
sf::SoundBuffer *sfxBuffer = new sf::SoundBuffer();
|
||||
sf::Sound *sfx = nullptr;
|
||||
string p = PATH + "Sounds/Submarines/torpedo.ogg";
|
||||
|
||||
if(sfxBuffer->loadFromFile(p.c_str())){
|
||||
sfx=new Sound(*sfxBuffer);
|
||||
sfx = new sf::Sound(*sfxBuffer);
|
||||
sfx->play();
|
||||
}
|
||||
|
||||
Fx fx;
|
||||
fx.initTime=getTime();
|
||||
fx.time=250;
|
||||
fx.sfx=sfx;
|
||||
fx.initTime = getTime();
|
||||
fx.time = 250;
|
||||
fx.sfx = sfx;
|
||||
inGameState->addFx(fx);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user