Shotgun.cpp 382 B

1234567891011121314151617181920
  1. #include "Shotgun.h"
  2. Shotgun::Shotgun( Tirs_Gest* tirsGest )
  3. :Arme( 19, SHOTGUN, tirsGest, 620 )
  4. {
  5. //ctor
  6. }
  7. Shotgun::~Shotgun()
  8. {
  9. //dtor
  10. }
  11. void Shotgun::tirer(Vec pos, Vec visee, bool allie)
  12. {
  13. visee.rotateR( 0.05f );
  14. m_tirsGest->addTir( pos, visee, m_degats, allie);
  15. visee.rotateR( -0.10f );
  16. m_tirsGest->addTir( pos, visee, m_degats, allie);
  17. }