Changeset 4217 in orxonox.OLD for orxonox/branches/movie_player/src/world_entities/world_entity.cc
- Timestamp:
- May 18, 2005, 11:27:40 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/movie_player/src/world_entities/world_entity.cc
r4013 r4217 30 30 /** 31 31 \brief standard constructor 32 33 Every derived contructor HAS to call the previous one supplying the isFree parameter. This is necessary to distunguish34 between free and bound entities. The difference between them is simply the fact that the movement of a free entity is35 not bound to the track of a world. Use this to implement projectile or effect classes that do not have to travel along the track.36 To specify an entity to be free or bound set the default parameter in the declaration of the constructor.37 Theoretically you should never have to call the constructor of an Entity directly, for it is called by the spawn() function of the World38 class. So if you want to create a new entity at any time, call World::spawn(). It will handle everything that is necessary.39 32 */ 40 33 WorldEntity::WorldEntity () … … 46 39 } 47 40 41 /** 42 \brief Loads the WordEntity-specific Part of any derived Class 43 */ 48 44 WorldEntity::WorldEntity(TiXmlElement* root) 49 45 { … … 54 50 if( string == NULL) 55 51 { 56 PRINTF( 0)("WorldEntity is missing a proper 'name'\n");52 PRINTF(2)("WorldEntity is missing a proper 'name'\n"); 57 53 string = "Unknown"; 58 54 temp = new char[strlen(string + 2)]; … … 73 69 else 74 70 { 75 PRINTF( 0)("WorldEntity is missing a proper 'model'\n");71 PRINTF(2)("WorldEntity is missing a proper 'model'\n"); 76 72 this->model = NULL; 77 73 } 78 74 if( this->model == NULL) 79 75 { 80 PRINTF(0)("WorldEntity model '%s' could not be loaded\n", string); 81 } 82 76 PRINTF(2)("WorldEntity model '%s' could not be loaded\n", string); 77 } 83 78 this->bDraw = true; 84 79 }
Note: See TracChangeset
for help on using the changeset viewer.