Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10406 in orxonox.OLD for trunk/src/world_entities/npcs


Ignore:
Timestamp:
Jan 27, 2007, 3:27:50 PM (17 years ago)
Author:
snellen
Message:

NPC is now scriptabel, added method atachCurrCameraToWorldEntity to CameraMan and made it scriptable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npcs/npc.cc

    r10387 r10406  
    4141CREATE_FACTORY(NPC);
    4242
     43
     44#include "script_class.h"
     45CREATE_SCRIPTABLE_CLASS(NPC,
     46                        addMethod("getAbsCoorX", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorX))
     47                        ->addMethod("getAbsCoorY", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorY))
     48                        ->addMethod("getAbsCoorZ", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorZ))
     49                        ->addMethod("setAbsCoor", Executor3<PNode, lua_State*,float,float,float>(&PNode::setAbsCoor))
     50                        ->addMethod("setAbsDir", Executor4<PNode, lua_State*,float,float,float,float>(&PNode::setAbsDir))
     51                       );
    4352
    4453NPC::NPC(const TiXmlElement* root)
Note: See TracChangeset for help on using the changeset viewer.