Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 3, 2006, 1:41:42 PM (18 years ago)
Author:
snellen
Message:

added methods to generic npc

Location:
branches/single_player_map/src/world_entities/npcs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/world_entities/npcs/generic_npc.cc

    r9031 r9032  
    4242                        // Animation and sound
    4343                        ->addMethod("playAnimation", ExecutorLua2<GenericNPC,int,int>(&GenericNPC::playAnimation))
    44                         //->addMethod("playSound", ExecutorLua1<GenericNPC,const std::string&>(&GenericNPC::playSound))
     44                        ->addMethod("playSound", ExecutorLua1<GenericNPC,const std::string&>(&GenericNPC::playSound))
    4545                        // Display
    4646                        ->addMethod("hide", ExecutorLua0<WorldEntity>(&WorldEntity::hide))
     
    172172 * @param filename: name of the file
    173173 */
    174 void GenericNPC::playSound(std::string filename)
     174void GenericNPC::playSound(const std::string& filename)
    175175{}
    176176
  • branches/single_player_map/src/world_entities/npcs/generic_npc.h

    r9003 r9032  
    6868  /* some generic control funtions */
    6969  void playAnimation(int animationIndex, int animPlaybackMode);
    70   void playSound(std::string filename);
     70  void playSound(const std::string& filename);
    7171  void playSound(int i);
    7272
Note: See TracChangeset for help on using the changeset viewer.