Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2008, 7:51:46 PM (15 years ago)
Author:
polakma
Message:

made some changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/worldentities/pawns/Pawn.cc

    r2288 r2308  
    7777
    7878        XMLPortObject(Pawn, WeaponSlot, "weaponslots", setWeaponSlot, getWeaponSlot, xmlelement, mode);
     79        XMLPortObject(Pawn, WeaponSet, "weaponsets", setWeaponSet, getWeaponSet, xmlelement, mode);
    7980        //XMLPortObject(Pawn, WeaponPack, "weapons", setWeaponPack, getWeaponPack, xmlelement, mode);
    8081
     
    153154    }
    154155
     156
    155157    void Pawn::setWeaponSlot(WeaponSlot * wSlot)
    156     {
    157         this->weaponSystem_->attachWeaponSlot(wSlot);
    158     }
     158    {   this->weaponSystem_->attachWeaponSlot(wSlot);   }
     159    WeaponSlot * Pawn::getWeaponSlot(unsigned int index) const
     160    {   return this->weaponSystem_->getWeaponSlotPointer(index);    }
    159161
    160     WeaponSlot * Pawn::getWeaponSlot(unsigned int index) const
    161     {
    162         return this->weaponSystem_->getWeaponSlotPointer(index);
    163     }
     162    /*
     163    void Pawn::setWeaponPack(WeaponPack * wPack)
     164    {   this->weaponSystem_->attachWeaponPack(wPack);   }
     165    WeaponPack * Pawn::getWeaponPack(unsigned int index) const
     166    {   return this->weaponSystem_->getWeaponPackPointer(index);
     167    */
     168
     169    void Pawn::setWeaponSet(WeaponSet * wSet)
     170    {   this->weaponSystem_->attachWeaponSet(wSet);   }
     171    WeaponSet * Pawn::getWeaponSet(unsigned int index) const
     172    {   return this->weaponSystem_->getWeaponSetPointer(index);    }
    164173
    165174}
Note: See TracChangeset for help on using the changeset viewer.