Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 5, 2008, 7:57:16 PM (15 years ago)
Author:
polakma
Message:

added firemodes and a lot of other things

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/weaponSystem/Weapon.cc

    r2098 r2145  
    3535#include "Weapon.h"
    3636
     37
    3738namespace orxonox
    3839{
     
    4041    {
    4142        RegisterObject(Weapon);
    42 
    43         this->loadingTime_ = 0;
    44         this->munition_ = 0;
     43        this->weaponReadyToShoot_ = true;
     44        //this->setParentWeaponSystem();
    4545
    4646    }
     
    5050    }
    5151
    52     void Weapon::addMunition()
    53     {
    54 
    55     }
    5652
    5753    void Weapon::XMLPort(Element& xmlelement, XMLPort::Mode mode)
     
    6460
    6561    }
     62
     63    void Weapon::reloaded()
     64    {
     65        this->weaponReadyToShoot_ = true;
     66    }
     67
     68    void Weapon::attachNeededMunition(Munition *PointerToMunition)
     69    {
     70
     71    }
     72/*
     73    void Weapon::setParentWeaponSystem()
     74    {
     75        this->parentWeaponSystem_ = this->parentWeaponSlot_->parentWeaponSet_->parentWeaponSystem_;
     76    }
     77*/
     78
    6679}
Note: See TracChangeset for help on using the changeset viewer.