Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2006, 6:48:00 PM (18 years ago)
Author:
snellen
Message:

made genericNPC::finalGoalReached() scriptable

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

    r8915 r8917  
    3737                        // Move
    3838                        addMethod("walkTo", ExecutorLua3<GenericNPC,float,float,float>(&GenericNPC::walkTo))
     39                        ->addMethod("runTo", ExecutorLua3<GenericNPC,float,float,float>(&GenericNPC::runTo))
    3940                        ->addMethod("turnTo", ExecutorLua1<GenericNPC,float>(&GenericNPC::turnTo))
     41                        ->addMethod("finalGoalReached", ExecutorLua0ret<GenericNPC,bool>(&GenericNPC::finalGoalReached))
    4042                        // Display
    4143                        ->addMethod("hide", ExecutorLua0<WorldEntity>(&WorldEntity::hide))
  • branches/single_player_map/src/world_entities/npcs/generic_npc.h

    r8909 r8917  
    3636
    3737
    38   bool finalGoalReached() const { return this->behaviourList.empty(); };
     38  bool finalGoalReached() { return this->behaviourList.empty(); };
    3939
    4040  /* npc controlling functions to be Queued */
Note: See TracChangeset for help on using the changeset viewer.