Changeset 4836 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc
- Timestamp:
- Jul 12, 2005, 12:33:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4834 r4836 76 76 77 77 /** 78 \briefprivate constructor because of singleton78 * private constructor because of singleton 79 79 */ 80 80 WorldInterface::WorldInterface() … … 85 85 86 86 /** 87 \briefpublic deconstructor87 * public deconstructor 88 88 */ 89 89 WorldInterface::~WorldInterface() … … 95 95 96 96 /** 97 \briefgets the singleton instance98 \returns singleton instance97 * gets the singleton instance 98 * @returns singleton instance 99 99 */ 100 100 WorldInterface* WorldInterface::getInstance() … … 107 107 108 108 /** 109 \briefinitializes the interface110 \param reference to the world109 * initializes the interface 110 * @param reference to the world 111 111 112 112 if the worldinterface is not initilizes, there wont be any … … 125 125 126 126 /** 127 \briefgets the entity list from the world128 \return entity list127 * gets the entity list from the world 128 * @return entity list 129 129 */ 130 130 tList<WorldEntity>* WorldInterface::getEntityList() … … 147 147 148 148 /** 149 \briefcreate a new World149 * create a new World 150 150 151 151 This creates a new empty world! … … 159 159 160 160 /** 161 \briefcreates a new World...162 \param worldID with this ID161 * creates a new World... 162 * @param worldID with this ID 163 163 */ 164 164 World::World (int worldID) … … 169 169 170 170 /** 171 \briefremove the World from memory171 * remove the World from memory 172 172 173 173 delete everything explicitly, that isn't contained in the parenting tree! … … 207 207 208 208 /** 209 \briefinitializes the world.209 * initializes the world. 210 210 211 211 set all stuff here that is world generic and does not use to much memory … … 245 245 246 246 /** 247 \briefthis is executed before load247 * this is executed before load 248 248 249 249 since the load function sometimes needs data, that has been init before … … 277 277 278 278 /** 279 \briefloads the World by initializing all resources, and set their default values.279 * loads the World by initializing all resources, and set their default values. 280 280 */ 281 281 ErrorMessage World::load() … … 376 376 if( element->Value() != NULL && !strcmp( element->Value(), "Terrain")) terrain = (Terrain*) created; 377 377 element = element->NextSiblingElement(); 378 glmis->step(); //! \todo temporary378 glmis->step(); //! @todo temporary 379 379 } 380 380 PRINTF(4)("Done loading WorldEntities\n"); … … 509 509 510 510 /** 511 \briefloads the debug world: only for experimental stuff511 * loads the debug world: only for experimental stuff 512 512 */ 513 513 void World::loadDebugWorld(int worldID) … … 679 679 680 680 /** 681 \briefinitializes a new World shortly before start681 * initializes a new World shortly before start 682 682 683 683 this is the function, that will be loaded shortly before the world is … … 692 692 693 693 /** 694 \briefstarts the World694 * starts the World 695 695 */ 696 696 ErrorMessage World::start() … … 703 703 704 704 /** 705 \briefstops the world.705 * stops the world. 706 706 707 707 This happens, when the player decides to end the Level. … … 714 714 715 715 /** 716 \briefpauses the Game716 * pauses the Game 717 717 */ 718 718 ErrorMessage World::pause() … … 722 722 723 723 /** 724 \briefends the pause Phase724 * ends the pause Phase 725 725 */ 726 726 ErrorMessage World::resume() … … 730 730 731 731 /** 732 \briefdestroys the World732 * destroys the World 733 733 */ 734 734 ErrorMessage World::destroy() … … 738 738 739 739 /** 740 \briefshows the loading screen740 * shows the loading screen 741 741 */ 742 742 void World::displayLoadScreen () … … 752 752 753 753 /** 754 \briefremoves the loadscreen, and changes over to the game755 756 \todo take out the delay754 * removes the loadscreen, and changes over to the game 755 756 @todo take out the delay 757 757 */ 758 758 void World::releaseLoadScreen () … … 766 766 767 767 /** 768 \briefgets the list of entities from the world769 \returns entity list768 * gets the list of entities from the world 769 * @returns entity list 770 770 */ 771 771 tList<WorldEntity>* World::getEntities() … … 776 776 777 777 /** 778 \briefthis returns the current game time779 \returns elapsed game time778 * this returns the current game time 779 * @returns elapsed game time 780 780 */ 781 781 double World::getGameTime() … … 786 786 787 787 /** 788 \briefchecks for collisions788 * checks for collisions 789 789 790 790 This method runs through all WorldEntities known to the world and checks for collisions … … 829 829 830 830 /** 831 \briefruns through all entities calling their draw() methods831 * runs through all entities calling their draw() methods 832 832 */ 833 833 void World::draw () … … 858 858 859 859 /** 860 \brieffunction to put your own debug stuff into it. it can display informations about860 * function to put your own debug stuff into it. it can display informations about 861 861 the current class/procedure 862 862 */ … … 936 936 this->lastFrame = SDL_GetTicks (); 937 937 PRINTF(3)("World::mainLoop() - Entering main loop\n"); 938 while( !this->bQuitOrxonox && !this->bQuitCurrentGame) /* \todo implement pause */938 while( !this->bQuitOrxonox && !this->bQuitCurrentGame) /* @todo implement pause */ 939 939 { 940 940 ++this->cycle; … … 956 956 957 957 // for( int i = 0; i < 5000000; i++) {} 958 /* \todo this is to slow down the program for openGl Software emulator computers, reimplement*/958 /* @todo this is to slow down the program for openGl Software emulator computers, reimplement*/ 959 959 } 960 960 PRINTF(3)("World::mainLoop() - Exiting the main loop\n"); … … 963 963 964 964 /** 965 \briefsynchronize local data with remote data965 * synchronize local data with remote data 966 966 */ 967 967 void World::synchronize () … … 973 973 974 974 /** 975 \briefrun all input processing975 * run all input processing 976 976 977 977 the command node is the central input event dispatcher. the node uses the even-queue from … … 991 991 992 992 /** 993 \briefadvance the timeline993 * advance the timeline 994 994 995 995 this calculates the time used to process one frame (with all input handling, drawing, etc) … … 1049 1049 but since we like the things not too complicated we got it this way around 1050 1050 until there is need or time to do it the other way around. 1051 \todo: GraphicsEngine ticks world: separation of processes and data...1051 @todo: GraphicsEngine ticks world: separation of processes and data... 1052 1052 1053 1053 bensch: in my opinion the GraphicsEngine could draw the world, but not tick it, … … 1061 1061 1062 1062 /** 1063 \briefthis function gives the world a consistant state1063 * this function gives the world a consistant state 1064 1064 1065 1065 after ticking (updating the world state) this will give a constistant … … 1076 1076 1077 1077 /** 1078 \briefrender the current frame1078 * render the current frame 1079 1079 1080 1080 clear all buffers and draw the world … … 1089 1089 this->draw(); 1090 1090 // draw HUD 1091 /* \todo draw HUD */1091 /* @todo draw HUD */ 1092 1092 // flip buffers 1093 1093 GraphicsEngine::swapBuffers(); … … 1098 1098 1099 1099 /** 1100 \briefadd and spawn a new entity to this world1101 \param entity to be added1100 * add and spawn a new entity to this world 1101 * @param entity to be added 1102 1102 */ 1103 1103 void World::spawn(WorldEntity* entity) … … 1109 1109 1110 1110 /** 1111 \briefadd and spawn a new entity to this world1112 \param entity to be added1113 \param absCoor At what coordinates to add this entity.1114 \param absDir In which direction should it look.1111 * add and spawn a new entity to this world 1112 * @param entity to be added 1113 * @param absCoor At what coordinates to add this entity. 1114 * @param absDir In which direction should it look. 1115 1115 */ 1116 1116 void World::spawn(WorldEntity* entity, Vector* absCoor, Quaternion* absDir) … … 1126 1126 1127 1127 /** 1128 \briefadd and spawn a new entity to this world1129 \param entity to be added1130 \param entity to be added to (PNode)1131 \param At what relative coordinates to add this entity.1132 \param In which relative direction should it look.1128 * add and spawn a new entity to this world 1129 * @param entity to be added 1130 * @param entity to be added to (PNode) 1131 * @param At what relative coordinates to add this entity. 1132 * @param In which relative direction should it look. 1133 1133 */ 1134 1134 void World::spawn(WorldEntity* entity, PNode* parentNode, … … 1153 1153 /** 1154 1154 \brief commands that the world must catch 1155 \returns false if not used by the world1155 @returns false if not used by the world 1156 1156 */ 1157 1157 bool World::command(Command* cmd)
Note: See TracChangeset
for help on using the changeset viewer.