Changeset 3551 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Mar 14, 2005, 11:46:50 PM (20 years ago)
- Location:
- orxonox/trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r3548 r3551 285 285 286 286 break; 287 288 289 287 } 290 288 default: … … 632 630 p4->debug (); 633 631 634 p1->update ( 1);632 p1->update (); 635 633 636 634 printf ("World::debug() - update\n"); … … 641 639 642 640 p2->shiftCoor (new Vector(-1, -1, -1)); 643 p1->update ( 2);641 p1->update (); 644 642 645 643 p1->debug (); … … 651 649 652 650 653 p1->update ( 2);651 p1->update (); 654 652 655 653 p1->debug (); … … 696 694 break; 697 695 // Process time 698 this->timeSlice (); 696 this->tick (); 697 // Update the state 698 this->update (); 699 699 // Process collision 700 700 this->collide (); … … 743 743 a heart-beat. 744 744 */ 745 void World::ti meSlice()745 void World::tick () 746 746 { 747 747 Uint32 currentFrame = SDL_GetTicks(); … … 778 778 779 779 /* update tick the rest */ 780 this->localCamera->ti meSlice(dt);780 this->localCamera->tick(dt); 781 781 this->trackManager->tick(dt); 782 this->nullParent->update (seconds);783 782 } 784 783 this->lastFrame = currentFrame; 784 } 785 786 787 /** 788 \brief this function gives the world a consistant state 789 790 after ticking (updating the world state) this will give a constistant 791 state to the whole system. 792 */ 793 void World::update() 794 { 795 this->nullParent->update (); 785 796 } 786 797 … … 814 825 void World::spawn(WorldEntity* entity) 815 826 { 816 this->nullParent->addChild (entity);817 827 this->entities->add (entity); 818 828 entity->postSpawn (); … … 828 838 void World::spawn(WorldEntity* entity, Vector* absCoor, Quaternion* absDir) 829 839 { 830 this->nullParent->addChild (entity);831 840 this->entities->add (entity); 832 841 … … 849 858 parentingMode mode) 850 859 { 851 860 this->nullParent = NullParent::getInstance(); 852 861 if( parentNode != NULL) 853 862 { -
orxonox/trunk/src/story_entities/world.h
r3526 r3551 84 84 void synchronize (); 85 85 void handleInput (); 86 void timeSlice (); 86 void tick (); 87 void update (); 87 88 void collide (); 88 89 void draw ();
Note: See TracChangeset
for help on using the changeset viewer.