Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
star_system.cpp File Reference
#include <assert.h>
#include "star_system.h"
#include "cmd/planet.h"
#include "cmd/unit.h"
#include "cmd/unit_collide.h"
#include "cmd/collection.h"
#include "cmd/click_list.h"
#include "lin_time.h"
#include "cmd/beam.h"
#include "gfx/sphere.h"
#include "gfx/halo.h"
#include "gfx/background.h"
#include "gfx/animation.h"
#include "gfx/aux_texture.h"
#include "gfx/star.h"
#include "cmd/bolt.h"
#include <expat.h>
#include "gfx/cockpit.h"
#include "audiolib.h"
#include "cmd/music.h"
#include "config_xml.h"
#include "vs_globals.h"
#include "cmd/cont_terrain.h"
#include "vegastrike.h"
#include "universe.h"
#include "cmd/atmosphere.h"
#include "hashtable.h"
#include "cmd/nebula.h"
#include "galaxy_gen.h"
#include "cmd/script/mission.h"
#include "in_kb.h"
#include "cmd/script/flightgroup.h"
#include "load_mission.h"
#include "gfx/particle.h"
#include "gfx/lerp.h"
#include "gfx/warptrail.h"
#include "gfx/env_map_gent.h"
#include "vsfilesystem.h"
#include "cmd/unit_find.h"
#include "options.h"

Go to the source code of this file.

Classes

class  UnitDrawer
 

Functions

void ConditionalCursorDraw (bool tf)
 
void update_ani_cache ()
 
void UpdateAnimatedTexture ()
 
void TerrainCollide ()
 
void UpdateTerrain ()
 
void UpdateCameraSnds ()
 
void NebulaUpdate (StarSystem *ss)
 

Variables

vs_options game_options
 
double saved_interpolation_blend_factor
 
double interpolation_blend_factor
 
bool cam_setup_phase
 

Function Documentation

void ConditionalCursorDraw ( bool  tf)

Definition at line 143 of file star_system.cpp.

References vs_options::hardware_cursor, and winsys_show_cursor().

Referenced by GameStarSystem::Draw(), WindowManager::draw(), and EndGUIFrame().

144 {
146  winsys_show_cursor( tf );
147 }
void NebulaUpdate ( StarSystem ss)

Definition at line 410 of file star_system.cpp.

References _Universe, Universe::AccessCamera(), Universe::AccessCockpit(), Cockpit::activeStarSystem, Nebula::getFade(), Camera::GetNebula(), and Camera::SetNebula().

411 {
412  if (_Universe->AccessCockpit()->activeStarSystem == ss) {
413  Nebula *neb;
414  if ( ( neb = _Universe->AccessCamera()->GetNebula() ) ) {
415  if (neb->getFade() <= 0)
416  //Update physics should set this
417  _Universe->AccessCamera()->SetNebula( NULL );
418  }
419  }
420 }
void TerrainCollide ( )

Definition at line 395 of file star_system.cpp.

References Terrain::CollideAll().

396 {
398 }
void update_ani_cache ( )

Definition at line 51 of file unit_functions.cpp.

References BILINEAR, cached_ani, and tempcache.

Referenced by UpdateAnimatedTexture().

52 {
53  for (std::set< std::string >::iterator it = tempcache.begin(); it != tempcache.end(); it++)
54  if ( cached_ani.find( *it ) == cached_ani.end() )
55  cached_ani.insert( std::pair< std::string, Animation* > ( *it,
56  new Animation( (*it).c_str(), false, .1, BILINEAR, false ) ) );
57  tempcache.clear();
58 }
void UpdateAnimatedTexture ( )

Definition at line 389 of file star_system.cpp.

References update_ani_cache(), and AnimatedTexture::UpdateAllPhysics().

390 {
393 }
void UpdateCameraSnds ( )
void UpdateTerrain ( )

Definition at line 400 of file star_system.cpp.

References Terrain::UpdateAll().

401 {
402  Terrain::UpdateAll( 64 );
403 }

Variable Documentation

bool cam_setup_phase

Definition at line 21 of file unit_functions_generic.cpp.

vs_options game_options

Draws cockpit parts Draws gauges, info strings, radar, ...

Definition at line 83 of file main.cpp.

double interpolation_blend_factor

Definition at line 20 of file unit_functions_generic.cpp.

double saved_interpolation_blend_factor

Definition at line 19 of file unit_functions_generic.cpp.