Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9233 in orxonox.OLD for branches/presentation/src


Ignore:
Timestamp:
Jul 5, 2006, 2:24:48 PM (18 years ago)
Author:
snellen
Message:

update

Location:
branches/presentation/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/npcs/gate.cc

    r9229 r9233  
    3636CREATE_FACTORY(Gate, CL_GATE);
    3737
     38
     39#include "script_class.h"
     40CREATE_SCRIPTABLE_CLASS(Gate, CL_GATE,
     41                            addMethod("hide", ExecutorLua0<WorldEntity>(&WorldEntity::hide))
     42                            ->addMethod("unhide", ExecutorLua0<WorldEntity>(&WorldEntity::unhide))
     43                           // ->addMethod("destroy", ExecutorLua0<Gate>(&Gate::destroy()))   
     44                            ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))
     45                            ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX))
     46                            ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY))
     47                            ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ))
     48                       );
    3849
    3950
  • branches/presentation/src/world_entities/script_trigger.cc

    r9208 r9233  
    139139  BaseObject* targetEntity = ClassList::getObject(target, CL_WORLD_ENTITY);
    140140
    141       if (targetEntity != NULL)
     141  if (targetEntity != NULL)
    142142  {
    143143    this->setTarget(dynamic_cast<WorldEntity*>(targetEntity));
  • branches/presentation/src/world_entities/space_ships/space_ship.cc

    r9221 r9233  
    6161                        ->addMethod("loadModel", ExecutorLua2<WorldEntity,const std::string& ,float>(&WorldEntity::loadModel2))
    6262                        ->addMethod("setName", ExecutorLua1<BaseObject,const std::string&>(&BaseObject::setName))
     63                        ->addMethod("hide", ExecutorLua0<WorldEntity>(&WorldEntity::hide))
     64                        ->addMethod("unhide", ExecutorLua0<WorldEntity>(&WorldEntity::unhide))
    6365                       //Coordinates
    6466                        ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))
Note: See TracChangeset for help on using the changeset viewer.