Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 1:42:57 PM (18 years ago)
Author:
hdavid
Message:

branches/presentation: hover scriptable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/space_ships/hover.cc

    r8719 r9121  
    3434CREATE_FACTORY(Hover, CL_HOVER);
    3535
     36#include "script_class.h"
     37CREATE_SCRIPTABLE_CLASS(Hover, CL_HOVER,
     38                        addMethod("hasPlayer", ExecutorLua0ret<Playable,bool>(&Playable::hasPlayer))
     39                        //Coordinates
     40                        ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))
     41                        ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX))
     42                        ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY))
     43                        ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ))
     44                       );
     45                       
    3646/**
    3747 *  destructs the hover, deletes alocated memory
Note: See TracChangeset for help on using the changeset viewer.