- Timestamp:
- Mar 14, 2005, 11:46:50 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/camera.cc
r3550 r3551 63 63 as smooth camera movement or swaying). 64 64 */ 65 void Camera::ti meSlice(Uint32 deltaT)65 void Camera::tick (Uint32 deltaT) 66 66 { 67 67 if( this->t <= deltaTime) -
orxonox/trunk/src/camera.h
r3544 r3551 56 56 virtual ~Camera (); 57 57 58 void ti meSlice(Uint32 deltaT);58 void tick (Uint32 deltaT); 59 59 void apply (); 60 60 void bind (WorldEntity* entity); -
orxonox/trunk/src/lib/coord/null_parent.cc
r3545 r3551 72 72 worry, normaly... 73 73 */ 74 void NullParent::update ( float timeStamp)74 void NullParent::update () 75 75 { 76 76 … … 87 87 if( this->bRelDirChanged || this->bAbsDirChanged) 88 88 pn->parentDirChanged (); 89 pn->update ( timeStamp);89 pn->update (); 90 90 pn = this->children->nextElement (); 91 91 } -
orxonox/trunk/src/lib/coord/null_parent.h
r3544 r3551 20 20 static NullParent* singletonRef; 21 21 22 virtual void update ( float timeStamp);22 virtual void update (); 23 23 24 24 private: -
orxonox/trunk/src/lib/coord/p_node.cc
r3547 r3551 13 13 ### File Specific: 14 14 main-programmer: Patrick Boenzli 15 co-programmer: ... 16 17 \todo Null-Parent => center of the coord system - singleton 15 co-programmer: 16 18 17 \todo Smooth-Parent: delay, speed 19 \todo destroy the stuff again, delete...20 18 */ 21 19 … … 109 107 delete &this->absDirection; 110 108 */ 111 this->parent = NULL;109 //this->parent = NULL; 112 110 /* there is currently a problem with cleaning up - fix*/ 113 111 112 114 113 PNode* pn = this->children->enumerate(); 115 114 while( pn != NULL) … … 117 116 pn = this->children->nextElement(); 118 117 delete pn; 119 } 118 } 119 120 120 /* this deletes all children in the list */ 121 121 delete this->children; … … 429 429 worry, normaly... 430 430 */ 431 void PNode::update ( float timeStamp)431 void PNode::update () 432 432 { 433 433 PRINTF(2)("PNode::update - %s - (%f, %f, %f)\n", this->objectName, this->absCoordinate.x, this->absCoordinate.y, this->absCoordinate.z); … … 493 493 if( this->bRelDirChanged || this->bAbsDirChanged) 494 494 pn->parentDirChanged (); 495 pn->update( timeStamp);495 pn->update(); 496 496 pn = this->children->nextElement(); 497 497 } … … 511 511 void PNode::processTick (float dt) 512 512 { 513 this->tick (dt);513 //this->tick (dt); 514 514 PNode* pn = this->children->enumerate(); 515 515 while( pn != NULL) … … 520 520 } 521 521 522 /**523 \param dt time to tick524 */525 void PNode::tick (float dt)526 {}527 522 528 523 /** -
orxonox/trunk/src/lib/coord/p_node.h
r3544 r3551 74 74 parentingMode getMode(); 75 75 76 virtual void update ( float timeStamp);76 virtual void update (); 77 77 void processTick (float dt); 78 virtual void tick (float dt);79 78 80 79 void setName (char* newName); -
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.