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
netserver_login.cpp File Reference

Go to the source code of this file.

Functions

UnitGetUnitMasterPartList ()
 
static void getShipList (vector< string > &ships)
 

Function Documentation

static void getShipList ( vector< string > &  ships)
static

Definition at line 175 of file netserver_login.cpp.

References UnitImages< BOGUS >::cargo, GetUnitMasterPartList(), and Unit::pImage.

176 {
177  Unit *mpl = &GetUnitMasterPartList();
178  for (vector< Cargo >::const_iterator iter = mpl->pImage->cargo.begin(); iter != mpl->pImage->cargo.end(); iter++)
179  if ( (*iter).GetCategory().substr( 0, 10 ) == "starships/" ) {
180  std::string content = (*iter).GetContent();
181  std::string::size_type dot = content.find( '.' );
182  //if (dot==std::string::npos) {
183  ships.push_back( content );
184  //}
185  }
186 }
Unit& GetUnitMasterPartList ( )

Definition at line 8366 of file unit_generic.cpp.

8367 {
8369 }