Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Feb 3, 2006, 12:40:23 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: merged avi_play back here

Location:
trunk/src/story_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/movie_loader.cc

    r6731 r7010  
    4747
    4848  LoadParam(root, "name", this, MovieLoader, loadMovie);
     49  LoadParam(root, "fps", this, MovieLoader, setFPS);
     50}
     51
     52void MovieLoader::setFPS(float fps)
     53{
     54  this->movie_player->setFPS(fps);
    4955}
    5056
  • trunk/src/story_entities/movie_loader.h

    r6600 r7010  
    4141  private:
    4242    void loadMovie(const char* filename);
     43    void setFPS(float fps);
    4344    void tick();
    4445    void draw() const;
  • trunk/src/story_entities/story_entity.cc

    r6993 r7010  
    7777  .describe("Sets the ID of the next StoryEntity");
    7878
     79  LoadParam(root, "menu-entry", this, StoryEntity, addToGameMenu)
     80      .describe("If this entry is 1, the world is contained in the SimpleGameMenu");
     81
     82
     83  LoadParam(root, "description", this, StoryEntity, setDescription)
     84      .describe("Sets the description of this StoryEntity");
     85
     86  LoadParam(root, "menu-item-image", this, StoryEntity, setMenuItemImage)
     87      .describe("If this entry is 1, the world is contained in the SimpleGameMenu");
     88
     89  LoadParam(root, "screenshoot", this, StoryEntity, setMenuScreenshoot)
     90      .describe("If this entry is 1, the world is contained in the SimpleGameMenu");
     91
    7992  PRINTF(4)("Loaded StoryEntity specific stuff\n");
    8093}
     
    152165    .describe("Sets the description of this StoryEntity");
    153166
    154     LoadParam(root, "menu-entry", this, StoryEntity, addToGameMenu)
    155     .describe("If this entry is 1, the world is contained in the SimpleGameMenu");
    156 
    157167    LoadParam(root, "menu-item-image", this, StoryEntity, setMenuItemImage)
    158168    .describe("If this entry is 1, the world is contained in the SimpleGameMenu");
Note: See TracChangeset for help on using the changeset viewer.