Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 5, 2007, 11:01:09 PM (18 years ago)
Author:
nicolasc
Message:

version bump

Location:
branches/vs-enhencements/src/world_entities/weapons
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/weapons/weapon_manager.cc

    r10669 r10672  
    3535/**
    3636 * @brief this initializes the weaponManager for a given nnumber of weapon slots
    37  * @param number of weapon slots of the model/ship <= 8 (limitied)
     37 * @param number of weapon slots of the model/ship <= 10 (limitied)
    3838 */
    3939WeaponManager::WeaponManager(WorldEntity* parent)
  • branches/vs-enhencements/src/world_entities/weapons/weapon_slot.cc

    r10669 r10672  
    5757  LoadParam(root, "slot", this, WeaponSlot, setWeaponConfig)
    5858  .describe("sets the weapon slot");
     59
     60  LoadParam(root, "currentWeapon", this, WeaponSlot, setCurrentWeapon)
     61  .describe("creates and set next weapon");
     62
     63  LoadParam(root, "nextWeapon", this, WeaponSlot, setNextWeapon)
     64  .describe("creates and set next weapon");
    5965}
    6066
  • branches/vs-enhencements/src/world_entities/weapons/weapon_slot.h

    r10534 r10672  
    88
    99#include "p_node.h"
    10 
     10#include "weapon.h"
    1111
    1212class Weapon;
     
    3636  inline void setNextWeapon(Weapon* weapon) { this->nextWeapon = weapon; }
    3737
     38  inline void setNextWeapon(const std::string& weaponName){this->nextWeapon = Weapon::createWeapon(weaponName); };
     39  inline void setCurrentWeapon(const std::string& weaponName){ this->currentWeapon = Weapon::createWeapon(weaponName); };
     40
    3841
    3942  inline void setWeaponConfig(int slot, int side) { this->weaponSlot = slot; this->weaponSide = side; }
Note: See TracChangeset for help on using the changeset viewer.