Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10443 in orxonox.OLD for trunk/src/world_entities/weapons/weapon.h


Ignore:
Timestamp:
Jan 28, 2007, 3:06:13 PM (17 years ago)
Author:
patrick
Message:

weapon now added to the main model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon.h

    r10368 r10443  
    187187    void deconstr();
    188188
     189    inline int getPreferedSide() { return this->preferedSide; }
     190    inline int getPreferedSlot() { return this->preferedSlot; }
     191
     192
    189193  protected:
    190194    //! ACTION: these functions are handled by the Weapon itself, and must be called by requestAction(WeaponAction);
     
    202206    static const char*   stateToChar(WeaponState state);
    203207
     208    void setPreferedSlot(int slot, int side) { this->preferedSlot = slot; this->preferedSide = side; }
    204209
    205210
     
    261266    Animation3D***         shootAnim;
    262267
     268    int                    preferedSlot;                    //!< prefered slot to add
     269    int                    preferedSide;                    //!< prefered side (left/right) to be added
     270
    263271  };
    264272
Note: See TracChangeset for help on using the changeset viewer.