1 #include "cmd/script/mission.h"
7 #include "cmd/unit_factory.h"
8 #include "cmd/collection.h"
11 #include "networking/netclient.h"
12 #include "cmd/music.h"
14 #include "gfx/animation.h"
19 #include "gfx/particle.h"
28 const std::string &
name,
34 extern void bootstrap_draw(
const std::string &message, Animation *newSplashScreen );
40 #define activeSys _Universe->activeStarSystem()
46 namespace UniverseUtil
54 return muzak->Addlist( str.c_str() );
66 muzak->GotoSong( str, layer );
71 muzak->SkipRandSong( which, layer );
75 muzak->SetLoops( numloops, layer );
79 Music::SetVolume( vol, layer,
false, latency_override );
83 Music::SetVolume( vol, layer,
true );
95 muzak->Mute( stopSound );
97 void playSound(
string soundName, QVector loc, Vector speed )
116 static vector< Animation* >anis;
117 anis.push_back(
new Animation( aniName.c_str() ) );
135 void addParticle( QVector loc, Vector velocity, Vector color,
float size )
140 particleTrail.AddParticle( p, velocity, size );
146 Unit *player = cockpit->GetParent();
155 globalWindowManager().shutDown();
171 static Animation *curSplash = 0;
172 if ( !filename.empty() ) {
175 curSplash =
new Animation( filename.c_str(), 0 );
178 int snum = time( NULL )%s.size();
179 curSplash =
new Animation( s[snum].c_str(), 0 );
205 void sendCustom(
int cp,
string cmd,
string args,
string id )
208 fprintf( stderr,
"sendCustom %s with invalid player %d\n", cmd.c_str(), cp );
212 Network[cp].sendCustom( cmd, args,
id );