Changeset 4953 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/weapon_manager.h
- Timestamp:
- Jul 25, 2005, 12:22:24 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/weapon_manager.h
r4952 r4953 29 29 #include "base_object.h" 30 30 31 #include " vector.h"31 #include "p_node.h" 32 32 33 33 // FORWARD DECLARATION … … 61 61 typedef struct 62 62 { 63 Vectorposition; //!< the relative Position to the position of the carrying entity. (const PNode* parent; of WeaponManager)63 PNode position; //!< the relative Position to the position of the carrying entity. (const PNode* parent; of WeaponManager) 64 64 long capability; //!< the capabilities of the Slot @see WM_SlotCapability. 65 65 … … 68 68 } WM_Slot; 69 69 70 //! This is a special class, that can handle many different Weapons of a ship/man/whatever. 71 /** 72 * this class is designed to interactively changeing multiple weapons (or just one), 73 * and to allow the Weapon itself to enable/disable itself. 74 * 75 * How to configure 76 * 1. set the default values. 77 * 2. define weapons. connect them to the WeaponManager's configurations 78 * 3. go on and run :).... 79 */ 70 80 class WeaponManager : public BaseObject { 71 81 public: 72 WeaponManager( unsigned int slotCount);82 WeaponManager(PNode* parent); 73 83 WeaponManager(const TiXmlElement* root); 74 84 ~WeaponManager(); … … 81 91 void setSlotPosition(int slot, const Vector& position); 82 92 void setSlotCapability(long slotCapability); 93 void setParent(PNode* parent); 83 94 84 95 void addWeapon(Weapon* weapon, int configID = -1, int slotID = -1);
Note: See TracChangeset
for help on using the changeset viewer.