Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 16, 2006, 3:34:04 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: does not run anymore with scripts, but i think, it is on track

lua_State is now handled over the Global Executor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/world_entities/test_entity.cc

    r9716 r9746  
    2626
    2727#include "test_entity.h"
    28 
     28#include "debug.h"
    2929
    3030#include "interactive_model.h"
     
    4141#include "script_class.h"
    4242CREATE_SCRIPTABLE_CLASS(TestEntity, TestEntity::classID(),
    43                             addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))
    44                             ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX))
    45                             ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY))
    46                             ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ))
    47 
     43                        addMethod("setAbsCoor", Executor3<PNode, lua_State*,float,float,float>(&PNode::setAbsCoor))
     44                        ->addMethod("getAbsCoorX", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorX))
     45                        ->addMethod("getAbsCoorY", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorY))
     46                        ->addMethod("getAbsCoorZ", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorZ))
    4847                       );
    4948
     
    9291
    9392  LoadParam(root, "md2animation", this, TestEntity, setAnim)
    94       .describe("sets the animation of the md2 model")
    95       .defaultValues(1);
     93  .describe("sets the animation of the md2 model")
     94  .defaultValues(1);
    9695
    9796}
Note: See TracChangeset for help on using the changeset viewer.