Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 24, 2015, 10:51:18 PM (9 years ago)
Author:
fvultier
Message:

There is now a HUD that shows the status of the weapon system: all weapons, weapon modes and their munition. Progress bars show the progress of replenishing munition.

Location:
code/branches/fabienHS15/src/modules/weapons/munitions
Files:
2 added
2 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fabienHS15/src/modules/weapons/munitions/CMakeLists.txt

    r10629 r10688  
    11ADD_SOURCE_FILES(WEAPONS_SRC_FILES
    2   ReplenishingMunition.cc
    32  LaserMunition.cc
     3  LightningMunition.cc
    44  FusionMunition.cc
    55  RocketMunition.cc
  • code/branches/fabienHS15/src/modules/weapons/munitions/FusionMunition.cc

    r9667 r10688  
    2828
    2929/**
    30     @file FusionMunition.h
     30    @file FusionMunition.cc
    3131    @brief Implementation of the FusionMunition class.
    3232*/
     
    4747        this->magazines_ = 10;
    4848
    49         this->bUseSeparateMagazines_ = true;
    50         this->bStackMunition_ = false;
     49        this->deployment_ = DEPLOYMENT_SEPARATE;
     50
    5151        this->reloadTime_ = 1.0f;
    5252
    5353        this->bAllowMunitionRefilling_ = true;
    5454        this->bAllowMultiMunitionRemovementUnderflow_ = true;
     55
     56        this->reloadTime_ = 0.5f;
    5557    }
    5658}
  • code/branches/fabienHS15/src/modules/weapons/munitions/GravityBombMunition.cc

    r10622 r10688  
    1919        this->magazines_ = 15;
    2020
    21         this->bUseSeparateMagazines_ = false;
    22         this->bStackMunition_ = true;
     21        this->deployment_ = DEPLOYMENT_STACK;
    2322
    2423        this->bAllowMunitionRefilling_ = true;
    2524        this->bAllowMultiMunitionRemovementUnderflow_ = false;
     25
     26        this->reloadTime_ = 0.0f;
    2627    }
    2728
  • code/branches/fabienHS15/src/modules/weapons/munitions/IceMunition.cc

    r10629 r10688  
    2828
    2929/**
    30     @file IceMunition.h
     30    @file IceMunition.cc
    3131    @brief Implementation of the IceMunition class.
    3232*/
     
    4747        this->magazines_ = 25;
    4848
    49         this->bUseSeparateMagazines_ = false;
    50         this->bStackMunition_ = true;
     49        this->deployment_ = DEPLOYMENT_STACK;
    5150
    5251        this->bAllowMunitionRefilling_ = false;
    5352        this->bAllowMultiMunitionRemovementUnderflow_ = false;
     53
     54        this->reloadTime_ = 0.5f;
    5455    }
    5556}
  • code/branches/fabienHS15/src/modules/weapons/munitions/LaserMunition.cc

    r9667 r10688  
    2828
    2929/**
    30     @file LaserMunition.h
     30    @file LaserMunition.cc
    3131    @brief Implementation of the LaserMunition class.
    3232*/
     
    4343        RegisterObject(LaserMunition);
    4444
    45         this->maxMunitionPerMagazine_ = 20;
    46         this->maxMagazines_ = 1;
    47         this->magazines_ = 1;
     45        this->maxMunitionPerMagazine_ = 10;
     46        this->maxMagazines_ = 10;
     47        this->magazines_ = 10;
    4848
    49         this->bUseSeparateMagazines_ = false;
    50         this->bStackMunition_ = true;
     49        this->deployment_ = DEPLOYMENT_SEPARATE;
    5150
    5251        this->bAllowMunitionRefilling_ = true;
     
    5554        this->replenishInterval_ = 0.5f;
    5655        this->replenishMunitionAmount_ = 1;
     56
     57        this->reloadTime_ = 0.8f;
    5758    }
    5859}
  • code/branches/fabienHS15/src/modules/weapons/munitions/LaserMunition.h

    r9667 r10688  
    3636
    3737#include "weapons/WeaponsPrereqs.h"
    38 #include "ReplenishingMunition.h"
     38#include "weaponsystem/ReplenishingMunition.h"
    3939
    4040namespace orxonox
  • code/branches/fabienHS15/src/modules/weapons/munitions/RocketMunition.cc

    r9667 r10688  
    2828
    2929/**
    30     @file RocketMunition.h
     30    @file RocketMunition.cc
    3131    @brief Implementation of the RocketMunition class.
    3232*/
     
    4747        this->magazines_ = 10;
    4848
    49         this->bUseSeparateMagazines_ = false;
    50         this->bStackMunition_ = true;
     49        this->deployment_ = DEPLOYMENT_STACK;
    5150
    5251        this->bAllowMunitionRefilling_ = false;
    5352        this->bAllowMultiMunitionRemovementUnderflow_ = false;
     53
     54        this->reloadTime_ = 0.5f;
    5455    }
    5556}
  • code/branches/fabienHS15/src/modules/weapons/munitions/SplitMunition.cc

    r10629 r10688  
    2828
    2929/**
    30     @file SplitMunition.h
     30    @file SplitMunition.cc
    3131    @brief Implementation of the SplitMunition class.
    3232*/
     
    4747        this->magazines_ = 25;
    4848
    49         this->bUseSeparateMagazines_ = false;
    50         this->bStackMunition_ = true;
     49        this->deployment_ = DEPLOYMENT_STACK;
    5150
    5251        this->bAllowMunitionRefilling_ = true;
    5352        this->bAllowMultiMunitionRemovementUnderflow_ = false;
     53
     54        this->reloadTime_ = 0.5f;
    5455    }
    5556}
Note: See TracChangeset for help on using the changeset viewer.