Changeset 7220 in orxonox.OLD for branches/std/src/world_entities
- Timestamp:
- Mar 12, 2006, 6:38:41 PM (19 years ago)
- Location:
- branches/std/src/world_entities
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/world_entities/creatures/md2_creature.cc
r7217 r7220 52 52 * @param fileName the name of the File to load the MD2Creature from (absolute path) 53 53 */ 54 MD2Creature::MD2Creature(const char*fileName)54 MD2Creature::MD2Creature(const std::string& fileName) 55 55 { 56 56 this->init(); … … 59 59 if(!doc.LoadFile()) 60 60 { 61 PRINTF(2)("Loading file %s failed for md2 creature.\n", fileName );61 PRINTF(2)("Loading file %s failed for md2 creature.\n", fileName.c_str()); 62 62 return; 63 63 } -
branches/std/src/world_entities/creatures/md2_creature.h
r7092 r7220 19 19 public: 20 20 21 MD2Creature(const char*fileName);21 MD2Creature(const std::string& fileName); 22 22 MD2Creature(const TiXmlElement* root = NULL); 23 23 virtual ~MD2Creature(); -
branches/std/src/world_entities/space_ships/helicopter.cc
r7207 r7220 55 55 * @param fileName the name of the File to load the helicopter from (absolute path) 56 56 */ 57 Helicopter::Helicopter(const char*fileName)57 Helicopter::Helicopter(const std::string& fileName) 58 58 { 59 59 this->init(); … … 62 62 if(!doc.LoadFile()) 63 63 { 64 PRINTF(2)("Loading file %s failed for Helicopter.\n", fileName );64 PRINTF(2)("Loading file %s failed for Helicopter.\n", fileName.c_str()); 65 65 return; 66 66 } -
branches/std/src/world_entities/space_ships/helicopter.h
r7092 r7220 17 17 18 18 Helicopter(); 19 Helicopter(const char*fileName);19 Helicopter(const std::string& fileName); 20 20 Helicopter(const TiXmlElement* root); 21 21 virtual ~Helicopter(); -
branches/std/src/world_entities/space_ships/hover.cc
r7193 r7220 47 47 * @param fileName the name of the File to load the hover from (absolute path) 48 48 */ 49 Hover::Hover(const char*fileName)49 Hover::Hover(const std::string& fileName) 50 50 { 51 51 this->init(); … … 54 54 if(!doc.LoadFile()) 55 55 { 56 PRINTF(2)("Loading file %s failed for Hover.\n", fileName );56 PRINTF(2)("Loading file %s failed for Hover.\n", fileName.c_str()); 57 57 return; 58 58 } -
branches/std/src/world_entities/space_ships/hover.h
r7092 r7220 14 14 public: 15 15 16 Hover(const char*fileName);16 Hover(const std::string& fileName); 17 17 Hover(const TiXmlElement* root = NULL); 18 18 virtual ~Hover(); -
branches/std/src/world_entities/space_ships/space_ship.cc
r7193 r7220 69 69 * @param fileName the name of the File to load the spaceship from (absolute path) 70 70 */ 71 SpaceShip::SpaceShip(const char*fileName)71 SpaceShip::SpaceShip(const std::string& fileName) 72 72 { 73 73 this->init(); … … 76 76 if(!doc.LoadFile()) 77 77 { 78 PRINTF(2)("Loading file %s failed for spaceship.\n", fileName );78 PRINTF(2)("Loading file %s failed for spaceship.\n", fileName.c_str()); 79 79 return; 80 80 } -
branches/std/src/world_entities/space_ships/space_ship.h
r7116 r7220 21 21 22 22 public: 23 SpaceShip(const char*fileName);23 SpaceShip(const std::string& fileName); 24 24 SpaceShip(const TiXmlElement* root = NULL); 25 25 virtual ~SpaceShip(); -
branches/std/src/world_entities/space_ships/turbine_hover.cc
r7193 r7220 49 49 * @param fileName the name of the File to load the turbine_hover from (absolute path) 50 50 */ 51 TurbineHover::TurbineHover(const char*fileName)51 TurbineHover::TurbineHover(const std::string& fileName) 52 52 { 53 53 this->init(); … … 56 56 if(!doc.LoadFile()) 57 57 { 58 PRINTF(2)("Loading file %s failed for TurbineHover.\n", fileName );58 PRINTF(2)("Loading file %s failed for TurbineHover.\n", fileName.c_str()); 59 59 return; 60 60 } -
branches/std/src/world_entities/space_ships/turbine_hover.h
r7092 r7220 18 18 public: 19 19 20 TurbineHover(const char*fileName);20 TurbineHover(const std::string& fileName); 21 21 TurbineHover(const TiXmlElement* root = NULL); 22 22 virtual ~TurbineHover(); -
branches/std/src/world_entities/terrain.cc
r7217 r7220 59 59 this either loads out of an OBJ-file, or loads a heightmap if no .obj-extension is found. 60 60 */ 61 Terrain::Terrain(const char*fileName)61 Terrain::Terrain(const std::string& fileName) 62 62 { 63 63 this->init(); 64 64 65 if ( !strstr(fileName, ".obj") || !strstr(fileName, ".OBJ"))65 if (fileName.rfind(".obj" ) != -1 || fileName.rfind(".OBJ") != -1 ) 66 66 { 67 67 this->loadModel(fileName); -
branches/std/src/world_entities/terrain.h
r7216 r7220 29 29 public: 30 30 Terrain(const TiXmlElement* root = NULL); 31 Terrain(const char*fileName);31 Terrain(const std::string& fileName); 32 32 Terrain(DebugTerrain debugTerrain); 33 33 virtual ~Terrain();
Note: See TracChangeset
for help on using the changeset viewer.