Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8711 in orxonox.OLD for trunk/src/world_entities/space_ships


Ignore:
Timestamp:
Jun 22, 2006, 1:09:20 PM (19 years ago)
Author:
bensch
Message:

merged the script_engine back here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/helicopter.h

    r8408 r8711  
    1212#include "sound_buffer.h"
    1313#include "sound_source.h"
     14
     15#include "script_class.h"
    1416
    1517class Helicopter : public Playable
     
    3840    virtual void process(const Event &event);
    3941   
    40     virtual void moveUp(bool move){bUp = move;};
     42    virtual void moveUp(bool move){bAscend = move;};
     43    virtual void moveDown(bool move){bDescend = move;};
    4144
    4245
     
    8083};
    8184
    82 //CREATE_SCRIPTABLE_CLASS(Helicopter, CL_HELICOPTER,
    83                        // addMethod("moveUp", ExecutorLua1<Object,bool>(&Helicopter::moveUp))
    84                        // );
     85CREATE_SCRIPTABLE_CLASS(Helicopter, CL_HELICOPTER,
     86                        addMethod("moveUp", ExecutorLua1<Helicopter,bool>(&Helicopter::moveUp))
     87                        ->addMethod("moveDown", ExecutorLua1<Helicopter,bool>(&Helicopter::moveDown))
     88                        ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))
     89                        ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX))
     90                        ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY))
     91                        ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ))
     92                           
     93                        );
    8594
    8695
Note: See TracChangeset for help on using the changeset viewer.