Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10642 in orxonox.OLD for branches/vs-enhencements/src/world_entities


Ignore:
Timestamp:
Apr 27, 2007, 12:03:26 AM (18 years ago)
Author:
rennerc
Message:

implemented action box

Location:
branches/vs-enhencements/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/space_ships/space_ship.cc

    r10641 r10642  
    490490  if( this->entityTrack != NULL && this->isDrawTrack())
    491491    this->entityTrack->drawGraph();
    492   this->entityTrack->drawBox();
    493492
    494493  WorldEntity::draw();
  • branches/vs-enhencements/src/world_entities/spectator.cc

    r10618 r10642  
    2828
    2929#include "player.h"
     30
     31#include "util/track/action_box.h"
    3032
    3133
     
    298300  else if( event.type == KeyMapper::PEV_BACKWARD)
    299301    this->bBackward = event.bPressed; //this->shiftCoor(0,-.1,0);
     302  else if ( event.type == KeyMapper::PEV_JUMP )
     303  {
     304    if ( State::getActionBox() && State::getActionBox()->isPointInBox( this->getAbsCoor() ) )
     305    {
     306      PRINTF(0)("IN BOX\n");
     307    }
     308    else
     309    {
     310      PRINTF(0)("NOT IN BOX\n");
     311    }
     312  }
    300313  else if( event.type == EV_MOUSE_MOTION)
    301314  {
Note: See TracChangeset for help on using the changeset viewer.