Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 9, 2009, 3:18:11 AM (15 years ago)
Author:
landauf
Message:

Several small adjustments in the weaponsystem (like additional const keyword, includes moved from .h to .cc where possible, …)

Firemode is now an unsigned int instead of an Enum. Instead of "fire" and "altFire" use "fire 0" and "fire 1"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapons/src/orxonox/objects/weaponSystem/WeaponSlot.cc

    r2662 r2912  
    2828
    2929#include "OrxonoxStableHeaders.h"
     30#include "WeaponSlot.h"
    3031
    3132#include "core/CoreIncludes.h"
    3233#include "core/XMLPort.h"
    33 #include "util/Debug.h"
    3434
    35 #include "WeaponSlot.h"
    36 
     35#include "Weapon.h"
    3736
    3837namespace orxonox
     
    4746        this->attachedWeapon_ = 0;
    4847        this->setObjectMode(0x0);
     48
     49COUT(0) << "+WeaponSlot" << std::endl;
    4950    }
    5051
    5152    WeaponSlot::~WeaponSlot()
    5253    {
     54COUT(0) << "~WeaponSlot" << std::endl;
    5355    }
    5456
     57    void WeaponSlot::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     58    {
     59        SUPER(WeaponSlot, XMLPort, xmlelement, mode);
     60    }
    5561
    5662    /*sets the munition type
     
    7177    }
    7278
    73 
    74     void WeaponSlot::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    75     {
    76         SUPER(WeaponSlot, XMLPort, xmlelement, mode);
    77     }
    78 
    7979    void WeaponSlot::attachWeapon(Weapon *weapon)
    8080    {
Note: See TracChangeset for help on using the changeset viewer.