vegastrike  0.5.1.r1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
universe_util.cpp File Reference
#include "cmd/script/mission.h"
#include "universe_util.h"
#include "universe.h"
#include "cmd/unit.h"
#include "cmd/unit_factory.h"
#include "cmd/collection.h"
#include "star_system.h"
#include <string>
#include "networking/netclient.h"
#include "cmd/music.h"
#include "audiolib.h"
#include "gfx/animation.h"
#include "lin_time.h"
#include "load_mission.h"
#include "config_xml.h"
#include "vs_globals.h"
#include "gfx/particle.h"
#include "cmd/base.h"
#include "options.h"

Go to the source code of this file.

Namespaces

 UniverseUtil
 

Constant Groups

 UniverseUtil
 

Macros

#define activeSys   _Universe->activeStarSystem()
 

Functions

unsigned int AddAnimation (const QVector &pos, const float size, bool mvolatile, const std::string &name, float percentgrow)
 
void RespawnNow (Cockpit *cp)
 
void TerminateCurrentBase (void)
 
void SetStarSystemLoading (bool value)
 
bool GetStarSystemLoading ()
 
void bootstrap_draw (const std::string &message, Animation *newSplashScreen)
 
Animation * GetSplashScreen ()
 
const vector< string > & ParseDestinations (const string &value)
 
void ClientServerSetLightContext (int lightcontext)
 
void UniverseUtil::playVictoryTune ()
 
int UniverseUtil::musicAddList (string str)
 
void UniverseUtil::musicLayerSkip (int layer)
 this skips the current music track, at a specific layer (and goes to the next in the currently playing list) More...
 
void UniverseUtil::musicLayerStop (int layer)
 this stops the music currently playing at a specific layer - with a nice fadeout More...
 
void UniverseUtil::musicLayerPlaySong (string str, int layer)
 
void UniverseUtil::musicLayerPlayList (int which, int layer)
 this plays msuci from a given list, at a specific layer (where the int is what was returned by musicAddList) More...
 
void UniverseUtil::musicLayerLoopList (int numloops, int layer)
 this plays msuci from a given list, at a specific layer (where the int is what was returned by musicAddList) More...
 
void UniverseUtil::musicLayerSetSoftVolume (float vol, float latency_override, int layer)
 sets the software volume, with smooth transitions (latency_override==-1 uses default transition time) More...
 
void UniverseUtil::musicLayerSetHardVolume (float vol, int layer)
 sets the hardware volume, does not support transitions of any kind. More...
 
void UniverseUtil::musicSetSoftVolume (float vol, float latency_override)
 sets the software volume, with smooth transitions (latency_override==-1 uses default transition time) More...
 
void UniverseUtil::musicSetHardVolume (float vol)
 sets the hardware volume, does not support transitions of any kind. More...
 
void UniverseUtil::musicMute (bool stopSound)
 this mutes sound - or unmutes it More...
 
void UniverseUtil::playSound (string soundName, QVector loc, Vector speed)
 
void UniverseUtil::playSoundCockpit (string soundName)
 
void UniverseUtil::StopAllSounds (void)
 
void UniverseUtil::cacheAnimation (string aniName)
 
void UniverseUtil::playAnimation (string aniName, QVector loc, float size)
 
void UniverseUtil::playAnimationGrow (string aniName, QVector loc, float size, float growpercent)
 
unsigned int UniverseUtil::getCurrentPlayer ()
 
unsigned int UniverseUtil::maxMissions ()
 
void UniverseUtil::addParticle (QVector loc, Vector velocity, Vector color, float size)
 
void UniverseUtil::loadGame (const string &savename)
 
void UniverseUtil::saveGame (const string &savename)
 
void UniverseUtil::showSplashScreen (const string &filename)
 
void UniverseUtil::showSplashMessage (const string &text)
 
void UniverseUtil::showSplashProgress (float progress)
 
void UniverseUtil::hideSplashScreen ()
 
bool UniverseUtil::isSplashScreenShowing ()
 
void UniverseUtil::sendCustom (int cp, string cmd, string args, string id)
 

Variables

vs_options game_options
 Functions for python modules. More...
 

Macro Definition Documentation

#define activeSys   _Universe->activeStarSystem()

Definition at line 40 of file universe_util.cpp.

Function Documentation

unsigned int AddAnimation ( const QVector &  pos,
const float  size,
bool  mvolatile,
const std::string &  name,
float  percentgrow 
)

Definition at line 52 of file star_system_jump.cpp.

void bootstrap_draw ( const std::string &  message,
Animation *  newSplashScreen 
)

Definition at line 21 of file libserver.cpp.

void ClientServerSetLightContext ( int  lightcontext)

Definition at line 41 of file universe_util.cpp.

Animation* GetSplashScreen ( )

Definition at line 374 of file main.cpp.

bool GetStarSystemLoading ( )

Definition at line 366 of file main.cpp.

const vector< string >& ParseDestinations ( const string &  value)

Definition at line 178 of file galaxy.cpp.

void RespawnNow ( Cockpit *  cp)
void SetStarSystemLoading ( bool  value)

Definition at line 362 of file main.cpp.

void TerminateCurrentBase ( void  )

Variable Documentation

vs_options game_options

Functions for python modules.

Definition at line 83 of file main.cpp.