Changeset 10534 in orxonox.OLD for trunk/src/world_entities/weapons
- Timestamp:
- Jan 31, 2007, 3:13:28 AM (18 years ago)
- Location:
- trunk/src/world_entities/weapons
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/weapon_slot.cc
r10440 r10534 23 23 24 24 ObjectListDefinition(WeaponSlot); 25 CREATE_FACTORY(WeaponSlot); 26 25 27 26 28 … … 51 53 LoadParam(root, "WeaponClass", this, WeaponSlot, setWeaponClass) 52 54 .describe("Sets the class this mount points should host"); 55 56 LoadParam(root, "slot", this, WeaponSlot, setWeaponConfig) 57 .describe("sets the weapon slot"); 53 58 } 54 59 -
trunk/src/world_entities/weapons/weapon_slot.h
r10440 r10534 36 36 inline void setNextWeapon(Weapon* weapon) { this->nextWeapon = weapon; } 37 37 38 39 inline void setWeaponConfig(int slot, int side) { this->weaponSlot = slot; this->weaponSide = side; } 40 inline int getWeaponSlot() { return this->weaponSlot; } 41 inline int getWeaponSide() { return this->weaponSide; } 42 43 38 44 private: 45 46 int weaponSlot; 47 int weaponSide; 39 48 40 49 long capability; //!< the capabilities of the Slot @see WeaponSlotCapability.
Note: See TracChangeset
for help on using the changeset viewer.