Changeset 9031 in orxonox.OLD for branches/single_player_map/src/world_entities
- Timestamp:
- Jul 3, 2006, 1:35:40 PM (18 years ago)
- Location:
- branches/single_player_map/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/npcs/generic_npc.cc
r9020 r9031 40 40 ->addMethod("turnTo", ExecutorLua1<GenericNPC,float>(&GenericNPC::turnTo)) 41 41 ->addMethod("finalGoalReached", ExecutorLua0ret<GenericNPC,bool>(&GenericNPC::finalGoalReached)) 42 // Animation and sound 43 ->addMethod("playAnimation", ExecutorLua2<GenericNPC,int,int>(&GenericNPC::playAnimation)) 44 //->addMethod("playSound", ExecutorLua1<GenericNPC,const std::string&>(&GenericNPC::playSound)) 42 45 // Display 43 46 ->addMethod("hide", ExecutorLua0<WorldEntity>(&WorldEntity::hide)) -
branches/single_player_map/src/world_entities/playable.h
r8724 r9031 56 56 57 57 // Player Settup 58 bool hasPlayer(){return !(this->currentPlayer == NULL);} 58 59 bool setPlayer(Player* player); 59 60 Player* getCurrentPlayer() const { return this->currentPlayer; }; -
branches/single_player_map/src/world_entities/space_ships/space_ship.cc
r9008 r9031 55 55 56 56 CREATE_FACTORY(SpaceShip, CL_SPACE_SHIP); 57 57 #include "script_class.h" 58 CREATE_SCRIPTABLE_CLASS(SpaceShip, CL_SPACE_SHIP, 59 addMethod("hasPlayer", ExecutorLua0ret<Playable,bool>(&Playable::hasPlayer)) 60 ); 58 61 59 62 /**
Note: See TracChangeset
for help on using the changeset viewer.