Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9221 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 5, 2006, 1:07:57 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/creatures/fps_player.cc

    r9220 r9221  
    8686{
    8787  this->setClassID(CL_FPS_PLAYER, "FPSPlayer");
    88 
    8988
    9089  this->bLeft = false;
     
    268267  if( this->bJump)
    269268  {
    270     printf("mechanic2:walkTo( %f, mtheight, %f)\n",this->getAbsCoorX(),this->getAbsCoorZ());
     269    printf("fleemechanic:runTo( %f, mtheight, %f)\n",this->getAbsCoorX(),this->getAbsCoorZ());
    271270  }
    272271
  • branches/presentation/src/world_entities/playable.h

    r9214 r9221  
    9292 
    9393  inline bool beFire(){ return this->bFire; }
     94  inline void fire(bool bF){ this->bFire = bF;}
    9495
    9596protected:
  • branches/presentation/src/world_entities/space_ships/space_ship.cc

    r9193 r9221  
    5858CREATE_SCRIPTABLE_CLASS(SpaceShip, CL_SPACE_SHIP,
    5959                        addMethod("hasPlayer", ExecutorLua0ret<Playable,bool>(&Playable::hasPlayer))
     60                        ->addMethod("fire", ExecutorLua1<Playable, bool>(&Playable::fire))
    6061                        ->addMethod("loadModel", ExecutorLua2<WorldEntity,const std::string& ,float>(&WorldEntity::loadModel2))
    6162                        ->addMethod("setName", ExecutorLua1<BaseObject,const std::string&>(&BaseObject::setName))
     
    354355//     return;
    355356
    356   // spaceship controlled movement
     357  // spaceship controlled movement fire(bool bF){ this->bFire = bF;}
    357358  //if (this->getOwner() == this->getHostID())
    358359    this->calculateVelocity(time);
Note: See TracChangeset for help on using the changeset viewer.