Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#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 |
needed for assert() calls. More... | |
#define activeSys _Universe->activeStarSystem() |
Definition at line 40 of file universe_util.cpp.
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.
References AnimationNulls, i, JumpAnimations, MIPMAP, and VolatileJumpAnimations.
void bootstrap_draw | ( | const std::string & | message, |
Animation * | newSplashScreen | ||
) |
Definition at line 21 of file libserver.cpp.
References BootstrapMyStarSystemLoading, DEPTHTEST, TextPlane::Draw(), Animation::DrawNow(), GetElapsedTime(), VegaConfig::getVariable(), GFXBeginScene(), GFXBlendMode(), GFXClear(), GFXColor4f(), GFXDisable(), GFXEnable(), GFXEndScene(), GFXFALSE, GFXHudMode(), GFXLoadIdentity(), GFXLoadMatrixModel(), GFXTRUE, Identity(), LIGHTING, Texture::MakeActive(), MIPMAP, Music::MuzakCycle(), ONE, PROJECTION, ScaleMatrix(), TextPlane::SetCharSize(), TextPlane::SetPos(), TEXTURE0, TEXTURE1, TEXTURE2D, TEXTURE_2D, AnimatedTexture::UpdateAllFrame(), UpdateTime(), Vector, VIEW, vs_config, and ZERO.
Referenced by bootstrap_first_loop(), NetClient::connectLoad(), Texture::Load(), NetClient::loginAccept(), UniverseUtil::showSplashMessage(), UniverseUtil::showSplashScreen(), and NetClient::startGame().
void ClientServerSetLightContext | ( | int | lightcontext) |
Definition at line 41 of file universe_util.cpp.
References GFXSetLightContext().
Animation* GetSplashScreen | ( | ) |
Definition at line 374 of file main.cpp.
References SplashScreen.
Referenced by UniverseUtil::showSplashScreen().
bool GetStarSystemLoading | ( | ) |
Definition at line 366 of file main.cpp.
References BootstrapMyStarSystemLoading.
Referenced by UniverseUtil::isSplashScreenShowing().
const vector< string >& ParseDestinations | ( | const string & | value) |
Definition at line 178 of file galaxy.cpp.
void RespawnNow | ( | Cockpit * | cp) |
Definition at line 1799 of file cockpit.cpp.
References _Universe, Universe::AccessCockpit(), and Universe::numPlayers().
void SetStarSystemLoading | ( | bool | value) |
Definition at line 362 of file main.cpp.
References BootstrapMyStarSystemLoading.
Referenced by bootstrap_main_loop(), UniverseUtil::hideSplashScreen(), and UniverseUtil::showSplashScreen().
void TerminateCurrentBase | ( | void | ) |
Definition at line 1151 of file base_interface.cpp.
References BaseInterface::CurrentBase, and BaseInterface::Terminate().
Referenced by BaseComputer::actionConfirmedLoadGame(), BaseComputer::draw(), NetActionConfirm::finalizeJoinGame(), UniverseUtil::loadGame(), and GameMenu::processSinglePlayerButton().
vs_options game_options |