Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 9, 2015, 5:55:42 PM (9 years ago)
Author:
fvultier
Message:

Munition may and must now be defined for each pawn separately. This way a heavy cruiser may carry more munition than a drone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fabienHS15/src/modules/weapons/munitions/LaserMunition.cc

    r10724 r10791  
    3434#include "LaserMunition.h"
    3535#include "core/CoreIncludes.h"
     36#include "core/XMLPort.h"
    3637
    3738namespace orxonox
     
    5354
    5455        this->replenishInterval_ = 0.5f;
    55         this->replenishMunitionAmount_ = 1;
     56        this->replenishAmount_ = 1;
    5657
    5758        this->reloadTime_ = 0.5f;
    5859    }
     60
     61    void LaserMunition::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     62    {
     63        SUPER(LaserMunition, XMLPort, xmlelement, mode);
     64    }
    5965}
Note: See TracChangeset for help on using the changeset viewer.