Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2007, 3:19:15 PM (17 years ago)
Author:
nicolasc
Message:

initial upload form mouse aiming in VS

Location:
branches/presentation/src/world_entities/weapons
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/weapons/crosshair.cc

    r10317 r10714  
    115115  if  (event.type == EV_MOUSE_MOTION)
    116116  {
    117     //this->setAbsCoor2D(event.x, event.y);
     117    printf("Processing Crosshair Mouse Event\n");
     118    this->setAbsCoor2D(event.x, event.y);
    118119  }
    119120}
  • branches/presentation/src/world_entities/weapons/rf_cannon.cc

    r10702 r10714  
    138138
    139139  pj->setAbsCoor(this->emissionPoint[this->activeBarrel]->getAbsCoor());
    140   pj->setAbsDir(this->getAbsDir());
     140//   pj->setAbsDir(this->getAbsDir());
     141//   pj->setAbsDir(Quaternion(0, dynamic_cast<WeaponManager*>(this->getParent())->getFixedTarget()->getAbsCoor() - this->getParent()->getAbsCoor()));
    141142  pj->activate();
    142143
  • branches/presentation/src/world_entities/weapons/weapon_manager.cc

    r10698 r10714  
    630630}
    631631
    632 
     632/**
     633 * processes the input
     634 * @param event the Event coming as input
     635 */
     636// void WeaponManager::process(const Event &event)
     637// {
     638//   if  (event.type == EV_MOUSE_MOTION)
     639//   {
     640//     this->crosshair->process(event);
     641// //     this->setAbsCoor2D(event.x, event.y);
     642//   }
     643// }
  • branches/presentation/src/world_entities/weapons/weapon_manager.h

    r10698 r10714  
    5555    void hideCrosshair();
    5656    void setRotationSpeed(float speed);
     57//     Crosshair* getCrosshair() {return this->crosshair; };
     58
     59//     virtual void process(const Event &event);
    5760
    5861    void setSlotCount(unsigned int slotCount);
Note: See TracChangeset for help on using the changeset viewer.