Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 17, 2005, 12:31:14 AM (18 years ago)
Author:
bensch
Message:

orxonox/branches/world_entities: added new Class Weapon, that will once fire BOMBS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/world_entities/src/world_entities/player.cc

    r5576 r5621  
    2626#include "weapons/test_gun.h"
    2727#include "weapons/turret.h"
     28#include "weapons/cannon.h"
    2829
    2930#include "list.h"
     
    4546{
    4647  this->init();
    47 
    48   //weapons:
    49   Weapon* wpRight = new TestGun(this->weaponMan, 0);
    50   Weapon* wpLeft = new TestGun(this->weaponMan, 1);
    51 
    52   this->weaponMan->addWeapon(wpRight);
    53 //  this->weaponMan->addWeapon(wpLeft, WM_CONFIG1, WM_SLOT1);
    54 //  this->weaponMan->addWeapon(wpRight, WM_CONFIG2);
    55 //  this->weaponMan->addWeapon(wpLeft, WM_CONFIG2);
    5648}
    5749
     
    9183  Weapon* wpLeft = new TestGun(this->weaponMan, 1);
    9284  wpLeft->setName("testGun Left");
     85  Weapon* cannon = new Cannon(this->weaponMan);
     86  cannon->setName("BFG");
    9387
    9488  this->weaponMan->addWeapon(wpLeft, 1, 0);
    9589  this->weaponMan->addWeapon(wpRight,1 ,1);
     90  this->weaponMan->addWeapon(cannon, 0, 6);
     91
    9692  //this->weaponMan->addWeapon(turret, 3, 0);
    9793
     
    133129
    134130  this->weaponMan = new WeaponManager(this);
    135   this->weaponMan->setSlotCount(6);
     131  this->weaponMan->setSlotCount(7);
    136132
    137133  this->weaponMan->setSlotPosition(0, Vector(-2.6, .1, -3.0));
     
    153149  this->weaponMan->setSlotDirection(5, Quaternion(+M_PI_4*.5-M_PI, Vector(1,0,0)));
    154150//
    155 //   this->weaponMan->setSlotPosition(6, Vector(-2.0, 0.1, -2.0));
    156 //   this->weaponMan->setSlotPosition(7, Vector(-2.0, 0.1, 2.0));
    157 //
     151   this->weaponMan->setSlotPosition(6, Vector(-1, 0.0, 0));
     152   this->weaponMan->setSlotCapability(6, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     153   //
    158154//   this->weaponMan->setSlotPosition(8, Vector(-2.5, -0.3, -2.0));
    159155//   this->weaponMan->setSlotDirection(8, Quaternion(-M_PI, Vector(1,0,0)));
Note: See TracChangeset for help on using the changeset viewer.