Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 25, 2015, 1:56:51 PM (10 years ago)
Author:
fvultier
Message:

improved documentation

Location:
code/branches/towerdefenseFabien/src/modules/weapons/weaponmodes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseFabien/src/modules/weapons/weaponmodes/SplitGun.cc

    r10592 r10594  
    2121 *
    2222 *   Author:
    23  *      Joel Smely
     23 *      Fabien Vultier
    2424 *   Co-authors:
    25  *      simonmie
     25 *      ...
    2626 *
    2727 */
     
    6969    /**
    7070    @brief
    71         XMLPort for the SplitGun. You can define how often the projectiles split, how many childs should be created per split and the time between two splits.
     71        XMLPort for the SplitGun. You can define how often the projectiles split, how many childs should be created per split, the spread and the time between two splits.
    7272    */
    7373    void SplitGun::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     
    9595        projectile->setVelocity(this->getMuzzleDirection() * this->speed_);
    9696
     97        // Pass important information to the projectile: Number of splits, Number of childs, split time, spread
    9798        projectile->setNumberOfSplits(getNumberOfSplits());
    9899        projectile->setNumberOfChilds(getNumberOfChilds());
  • code/branches/towerdefenseFabien/src/modules/weapons/weaponmodes/SplitGun.h

    r10592 r10594  
    2121 *
    2222 *   Author:
    23  *      Joel Smely
     23 *      Fabien Vultier
    2424 *   Co-authors:
    2525 *      ...
     
    4545        A slow ball of lightning.
    4646    @author
    47         Joel Smely
     47        Fabien Vultier
    4848    @ingroup WeaponsWeaponModes
    4949    */
     
    7575
    7676       private:
    77             float speed_; //!< The speed of the fired projectile.
    78             int numberOfSplits_;
    79             int numberOfChilds_;
    80             float splitTime_;
    81             float spread_;
     77            float speed_; //The speed of the fired projectile.
     78            int numberOfSplits_; //The number of times the projectile will split into child projectiles
     79            int numberOfChilds_; //The number of child projectiles that are created if the projectile splits
     80            float splitTime_; //The time between creation of the projectile and the split of the projectile
     81            float spread_; //Low spread means that the child projectiles are concentrated in a small area
    8282    };
    8383}
Note: See TracChangeset for help on using the changeset viewer.