Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

implemented action box

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.