Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10023 in orxonox.OLD


Ignore:
Timestamp:
Dec 6, 2006, 4:47:06 PM (17 years ago)
Author:
marcscha
Message:

little modifications to swarm launcher

Location:
branches/playability/src
Files:
2 added
2 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/defs/class_id_DEPRECATED.h

    r10004 r10023  
    225225  CL_FPS_LASER_RIFLE            =    0x000003a8,
    226226  CL_BOOMERANG_GUN              =    0x000003a9,
     227  CL_SWARM_LAUNCHER             =    0x000003aa,
    227228
    228229  // Projectiles
  • branches/playability/src/util/hud.cc

    r9965 r10023  
    175175        weapon->getEnergyWidget()->setBackgroundColor(Color(.8,.2,.11, 0.1));
    176176        weapon->getEnergyWidget()->setFrontColor(Color( .2,.5,.7,.6));
    177         //      weapon->getEnergyWidget()->frontMaterial().setTransparency(.6);
     177        //weapon->getEnergyWidget()->frontMaterial().setTransparency(.6);
    178178        this->weaponsWidgets.push_back(weapon->getEnergyWidget());
    179179      }
     
    190190        weapon->getEnergyWidget()->setBackgroundColor(Color(.8,.2,.11, 0.1));
    191191        weapon->getEnergyWidget()->setFrontColor(Color( .2,.5,.7,.6));
    192         //      weapon->getEnergyWidget()->frontMaterial().setTransparency(.6);
     192        //weapon->getEnergyWidget()->frontMaterial().setTransparency(.6);
    193193        this->weaponsWidgets.push_back(weapon->getEnergyWidget());
    194194      }
     
    236236
    237237  std::list<OrxGui::GLGuiWidget*>::iterator weaponWidget;
    238   Vector2D pos(0.3, .9);
     238  Vector2D pos(0.3, .7);
    239239  for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++, pos.x+=.2)
    240240  {
  • branches/playability/src/world_entities/WorldEntities.am

    r10004 r10023  
    4040                world_entities/weapons/medium_blaster.cc \
    4141                world_entities/weapons/heavy_blaster.cc \
    42                 world_entities/weapons/swarm_missile.cc \
     42                world_entities/weapons/swarm_launcher.cc \
    4343                \
    4444                world_entities/projectiles/bolt.cc \
     
    152152                weapons/medium_blaster.h \
    153153                weapons/heavy_blaster.h \
    154                 weapons/swarm_missile.h \
     154                weapons/swarm_launcher.h \
    155155                \
    156156                projectiles/bolt.h \
  • branches/playability/src/world_entities/player.cc

    r9975 r10023  
    1616#include "player.h"
    1717#include "playable.h"
     18#include "space_ships/space_ship.h"
    1819
    1920#include "event_handler.h"
     
    7475    this->playable = playable;
    7576    this->_hud.setEnergyWidget(this->playable->getHealthWidget());
    76     this->_hud.setWeaponManager(&this->playable->getWeaponManager());
     77    /*if (dynamic_cast<SpaceShip*>(this->playable))
     78      this->_hud.setWeaponManager(&this->playable->getWeaponManager(), &dynamic_cast<SpaceShip*>(this->playable)->getWeaponManagerSecondary());
     79    else*/
     80      this->_hud.setWeaponManager(&this->playable->getWeaponManager());
    7781
    7882    this->playable->setPlayer(this);
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r10022 r10023  
    2626#include "weapons/medium_blaster.h"
    2727#include "weapons/heavy_blaster.h"
    28 #include "weapons/swarm_missile.h"
     28#include "weapons/swarm_launcher.h"
    2929#include "weapons/boomerang_gun.h"
    3030#include "weapons/turret.h"
     
    154154  wpLeft2->setName("Medium Blaster Left");
    155155
    156   Weapon* wpRight3 = new HeavyBlaster ();
     156/*  Weapon* wpRight3 = new HeavyBlaster ();
    157157  wpRight3->setName("Heavy Blaster Right");
    158158  Weapon* wpLeft3 = new HeavyBlaster ();
    159   wpLeft3->setName("Heavy Blaster Left");
    160 
    161   Weapon* cannon = new SwarmMissile();
    162   cannon->setName("Swarm Missile");
     159  wpLeft3->setName("Heavy Blaster Left");*/
     160
     161  Weapon* cannon = new SwarmLauncher();
     162  cannon->setName("SwarmLauncher");
    163163 
    164164
     
    168168  this->weaponMan.addWeapon( wpLeft2, 0, 2);
    169169  this->weaponMan.addWeapon( wpRight2, 0, 3);
    170   this->weaponMan.addWeapon( wpLeft3, 0, 4);
    171   this->weaponMan.addWeapon( wpRight3, 0, 5);
    172 
    173   this->secWeaponMan.addWeapon( cannon, 0, 0);
     170/*  this->weaponMan.addWeapon( wpLeft3, 0, 4);
     171  this->weaponMan.addWeapon( wpRight3, 0, 5);*/
     172
     173  this->secWeaponMan.addWeapon( cannon, 1, 0);
    174174
    175175  this->weaponMan.changeWeaponConfig(0);
     176  this->secWeaponMan.changeWeaponConfig(1);
    176177
    177178  wpRight1->requestAction(WA_ACTIVATE);
     
    179180  wpRight2->requestAction(WA_ACTIVATE);
    180181  wpLeft2->requestAction(WA_ACTIVATE);
    181   wpRight3->requestAction(WA_ACTIVATE);
    182   wpLeft3->requestAction(WA_ACTIVATE);
     182/*  wpRight3->requestAction(WA_ACTIVATE);
     183  wpLeft3->requestAction(WA_ACTIVATE);*/
    183184
    184185  cannon->requestAction(WA_ACTIVATE);
     
    369370  registerVar( new SynchronizeableFloat( &cameraLook, &cameraLook, "cameraLook", PERMISSION_OWNER ) );
    370371  registerVar( new SynchronizeableFloat( &rotation, &rotation, "rotation", PERMISSION_OWNER ) );
     372  registerVar( new SynchronizeableBool( &bFire, &bFire, "bSecFire", PERMISSION_OWNER));
    371373
    372374  registerVar( new SynchronizeableVector( &velocity, &velocity, "velocity", PERMISSION_MASTER_SERVER ) );
  • branches/playability/src/world_entities/space_ships/space_ship.h

    r10022 r10023  
    8989    short                 supportedPlaymodes; //!< What Playmodes are Supported in this Playable.
    9090    Playable::Playmode    playmode;           //!< The current playmode.
    91     bool                  bSecFire;
    9291
    9392    //ship atributes
     
    135134    bool                  bRollL;             //!< rolling button pressed (left)
    136135    bool                  bRollR;             //!< rolling button pressed (right)
     136    bool                  bSecFire;           //!< second fire button pressed
    137137
    138138    /*
  • branches/playability/src/world_entities/weapons/weapon_manager.cc

    r10004 r10023  
    481481      if (tickWeapon != NULL)
    482482      {
    483            //        if (this->parent != NULL)
    484           tickWeapon->toList(this->parentEntity->getOMListNumber());
     483        //if (this->parent != NULL)
     484        tickWeapon->toList(this->parentEntity->getOMListNumber());
    485485        tickWeapon->requestAction(WA_ACTIVATE);
    486486        this->currentSlotConfig[i].position.activateNode();
Note: See TracChangeset for help on using the changeset viewer.