Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8968 in orxonox.OLD


Ignore:
Timestamp:
Jun 30, 2006, 6:23:17 PM (18 years ago)
Author:
snellen
Message:

made testentity scriptable

Location:
branches/single_player_map/src/world_entities
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/world_entities/creatures/fps_player.cc

    r8952 r8968  
    211211  {
    212212    this->bPosBut = false;
    213     printf("guard:walkTo( %f, height, %f)\n",this->getAbsCoorX(),this->getAbsCoorZ());
     213    printf("prisoner:walkTo( %f, height, %f)\n",this->getAbsCoorX(),this->getAbsCoorZ());
    214214  }
    215215 
  • branches/single_player_map/src/world_entities/npcs/generic_npc.cc

    r8967 r8968  
    528528    this->fallVelocity += 300.0f * dt;
    529529    velocity -= Vector(0.0, 1.0, 0.0) * this->fallVelocity;
    530     PRINTF(0)("%s is not on ground\n", this->getName());
     530   // PRINTF(0)("%s is not on ground\n", this->getName());
    531531  }
    532532  else
  • branches/single_player_map/src/world_entities/npcs/npc.cc

    r8894 r8968  
    2929
    3030  this->toList(OM_GROUP_00);
     31
    3132}
    3233
  • branches/single_player_map/src/world_entities/test_entity.cc

    r8778 r8968  
    3737
    3838CREATE_FACTORY(TestEntity, CL_TEST_ENTITY);
     39
     40#include "script_class.h"
     41CREATE_SCRIPTABLE_CLASS(TestEntity, CL_TEST_ENTITY,
     42                            addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))
     43                            ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX))
     44                            ->addMethod("getAbsCoorY", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorY))
     45                            ->addMethod("getAbsCoorZ", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorZ))
     46                           
     47                       );
    3948
    4049
Note: See TracChangeset for help on using the changeset viewer.