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
navscreen.h File Reference
#include "gui/glut_support.h"
#include "navscreenoccupied.h"
#include "drawlist.h"
#include "navitemtypes.h"
#include "gfx/masks.h"
#include "navcomputer.h"
#include "navpath.h"
#include "gfx/hud.h"
#include "gnuhash.h"

Go to the source code of this file.

Classes

class  NavigationSystem
 
class  NavigationSystem::SystemIterator
 
class  NavigationSystem::CachedSystemIterator
 
struct  NavigationSystem::CachedSystemIterator::SystemInfo
 
class  NavigationSystem::CachedSectorIterator
 
class  NavigationSystem::CachedSectorIterator::SectorInfo
 

Macros

#define NAVTOTALMESHCOUNT   8
 
#define MAXZOOM   10
 

Functions

void Beautify (string systemfile, string &sector, string &system)
 

Macro Definition Documentation

#define MAXZOOM   10

Definition at line 15 of file navscreen.h.

Referenced by NavigationSystem::DrawGalaxy().

#define NAVTOTALMESHCOUNT   8

Function Documentation

void Beautify ( string  systemfile,
string &  sector,
string &  system 
)

Definition at line 1878 of file navscreen.cpp.

Referenced by NavigationSystem::DrawGalaxy(), DrawNode(), NavigationSystem::DrawSectorList(), NavigationSystem::CachedSectorIterator::init(), and CriteriaSector::isDestination().

1879 {
1880  string::size_type slash = systemfile.find( "/" );
1881  if (slash == string::npos) {
1882  sector = "";
1883  system = systemfile;
1884  } else {
1885  sector = systemfile.substr( 0, slash );
1886  system = systemfile.substr( slash+1 );
1887  }
1888  if ( sector.size() )
1889  sector[0] = toupper( sector[0] );
1890  if ( system.size() )
1891  system[0] = toupper( system[0] );
1892 }