Changeset 2141 in orxonox.OLD for orxonox/branches/chris/src/world.h
- Timestamp:
- Jul 14, 2004, 3:31:42 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/src/world.h
r2112 r2141 1 /*! 2 \file world.h 3 \brief Holds and manages all game data 4 */ 1 5 2 6 #ifndef WORLD_H … … 8 12 class WorldEntity; 9 13 14 //! The game environment 10 15 class World { 11 16 … … 40 45 }; 41 46 47 /** 48 \brief spawn a new WorldEntity at a Location 49 \param loc: the Location where the Entity should be spawned 50 \param owner: a pointer to the parent of the Entity 51 \return a pointer to the new WorldEntity or NULL if there was an error 52 53 You can use this function to spawn any derivation of WorldEntity you want, just specify the desired 54 class within the template specification brackets. Do not attempt to spawn any classes that have NOT been 55 derived from WorldEntity, you won't even be able to compile the code. Note that this version of spawn() 56 works with both free and bound WorldEntities. 57 */ 42 58 template<typename T> T* World::spawn(Location* loc = NULL, WorldEntity* owner = NULL) 43 59 { … … 62 78 } 63 79 80 /** 81 \brief spawn a new WorldEntity at a Placement 82 \param lplc: the placement where the Entity should be spawned 83 \param owner: a pointer to the parent of the Entity 84 \return a pointer to the new WorldEntity or NULL if there was an error 85 86 You can use this function to spawn any FREE derivation of WorldEntity you want, just specify the desired 87 class within the template specification brackets. Do not attempt to spawn any classes that have NOT been 88 derived from WorldEntity, you won't even be able to compile the code. Note that this version of spawn() 89 works with free WorldEntities only, you will provoke an error message if you try to spawn a bound Entity with 90 a Placement. 91 */ 64 92 template<typename T> T* World::spawn(Placement* plc, WorldEntity* owner = NULL) 65 93 {
Note: See TracChangeset
for help on using the changeset viewer.