Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 5, 2010, 6:26:54 PM (15 years ago)
Author:
dafrick
Message:

Additional documentation, code niceifying and potential bug fixing. Also: Renamed DroppedItem to DroppedPickup.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • code/branches/pickup3/src/modules/pickup/DroppedPickup.h

    r6466 r6475  
    2323 *      Daniel 'Huty' Haggenmueller
    2424 *   Co-authors:
    25  *      ...
     25 *      Damian 'Mozork' Frick
    2626 *
    2727 */
     
    2929/**
    3030    @file
    31     @brief Definition of DroppedItem
     31    @brief Definition of the DroppedPickup class.
    3232*/
    3333
    34 #ifndef _DroppedItem_H__
    35 #define _DroppedItem_H__
     34#ifndef _DroppedPickup_H__
     35#define _DroppedPickup_H__
    3636
    3737#include "PickupPrereqs.h"
     
    4141namespace orxonox
    4242{
    43     class _OrxonoxExport DroppedItem : public PickupSpawner
     43   
     44    /**
     45    @brief
     46        Special PickupSpawner that is created whe a Pickupable is dropped. It just spawns one pickup, the one that was dropped.
     47    @author
     48        Daniel 'Huty' Haggenmueller
     49        Damian 'Mozork' Frick
     50    */
     51    class _OrxonoxExport DroppedPickup : public PickupSpawner
    4452    {
    4553        public:
    46             DroppedItem(BaseObject* creator);
    47             DroppedItem(BaseObject* creator, Pickupable* item, const Vector3& position, float triggerDistance);
    48             virtual ~DroppedItem();
     54            DroppedPickup(BaseObject* creator); //!< Default constructor.
     55            DroppedPickup(BaseObject* creator, Pickupable* pickup, const Vector3& position, float triggerDistance = 10.0); //!< Constructor.
     56            virtual ~DroppedPickup(); //!< Destructor.
    4957
    5058        protected:
    51             virtual Pickupable* getPickup(void);
     59            virtual Pickupable* getPickup(void); //!< Creates the Pickupable that is going to get picked up.
    5260           
    5361        private:
    54             void initialize(void);
    55             void createDrop(const Vector3& position);
     62            void initialize(void); //!< Initializes the member variables of the object.
    5663           
    57             bool gotPickedUp_;
     64            bool gotPickedUp_; //!< Whether the pickup got picked up or not.
    5865
    5966    };
    6067}
    6168
    62 #endif /* _DroppedItem_H__ */
     69#endif /* _DroppedPickup_H__ */
Note: See TracChangeset for help on using the changeset viewer.