Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 25, 2005, 12:22:24 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: Slots are now PNodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/weapons/weapon_manager.h

    r4952 r4953  
    2929#include "base_object.h"
    3030
    31 #include "vector.h"
     31#include "p_node.h"
    3232
    3333// FORWARD DECLARATION
     
    6161typedef struct
    6262{
    63   Vector        position;               //!< 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)
    6464  long          capability;             //!< the capabilities of the Slot @see WM_SlotCapability.
    6565
     
    6868} WM_Slot;
    6969
     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 */
    7080class WeaponManager : public BaseObject {
    7181  public:
    72     WeaponManager(unsigned int slotCount);
     82    WeaponManager(PNode* parent);
    7383    WeaponManager(const TiXmlElement* root);
    7484    ~WeaponManager();
     
    8191    void setSlotPosition(int slot, const Vector& position);
    8292    void setSlotCapability(long slotCapability);
     93    void setParent(PNode* parent);
    8394
    8495    void addWeapon(Weapon* weapon, int configID = -1, int slotID = -1);
Note: See TracChangeset for help on using the changeset viewer.