Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3832 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
Apr 14, 2005, 1:16:31 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: animation class functions implemented, list enhanced

Location:
orxonox/trunk/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/campaign.cc

    r3629 r3832  
    212212
    213213
    214 
    215   StoryEntity* entity = this->entities->enumerate();
     214  tIterator<StoryEntity>* iterator = this->entities->getIterator();
     215  StoryEntity* entity = iterator->nextElement();
    216216  while( entity != NULL)
    217217    {
     
    223223          return entity;
    224224        }
    225       entity = this->entities->nextElement();
    226     }
    227 
     225      entity = iterator->nextElement();
     226    }
     227  delete iterator;
    228228
    229229
  • orxonox/trunk/src/story_entities/world.cc

    r3831 r3832  
    374374
    375375            this->testText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);
    376             testText->setText("TEXT  rocks");
     376            testText->setText("We've got Hostiles!");
    377377            testText->setBlending(1.0);
    378378            testText->setBindNode(tn);
    379379
    380             aTest* test = new aTest();
    381             tAnim<aTest>* testAnim = new tAnim<aTest>(test, &aTest::littleDebug);
     380            //aTest* test = new aTest();
     381            //tAnim<aTest>* testAnim = new tAnim<aTest>(test, &aTest::littleDebug);
     382            tAnim<Text>* testAnim = new tAnim<Text>(testText, &Text::setBlending);
     383           
     384            testAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR);
     385            testAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR);
     386            testAnim->addKeyFrame(1.0, 1.0, ANIM_LINEAR);
     387           
     388            testAnim->addKeyFrame(0.0, 1.0, ANIM_COSINE);
     389            testAnim->addKeyFrame(1.0, 1.0, ANIM_COSINE);         
     390           
    382391            testAnim->addKeyFrame(0.0, 1.0, ANIM_SINE);
    383             testAnim->addKeyFrame(3.5, 1.0, ANIM_SINE);
    384             //testAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR);
    385             //testAnim->addKeyFrame(1.0, 1.0, ANIM_LINEAR);
     392            testAnim->addKeyFrame(1.0, 1.0, ANIM_SINE);
     393                    testAnim->addKeyFrame(0.0, 1.0, ANIM_NEG_EXP);
     394            testAnim->addKeyFrame(1.0, 1.0, ANIM_NEG_EXP);
     395           
    386396            testAnim->setInfinity(ANIM_INF_REWIND);
    387397            break;
Note: See TracChangeset for help on using the changeset viewer.