Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2016, 3:13:51 PM (9 years ago)
Author:
fvultier
Message:

merged branch hover

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationFS16/src/modules/pickup/PickupSpawner.h

    r11071 r11199  
    114114                {return this->pickupTemplate_; }
    115115
     116
     117            void setPickupTemplateName(const std::string& name);
     118            void setPickupTemplate(Template* temp);
     119
     120
     121/**
     122            @brief Set the distance in which to trigger.
     123            @param value The new distance in which to trigger.
     124            */
     125            inline void setTriggerDistance(float value)
     126                { this->triggerDistance_ = value; }
     127            /**
     128            @brief Set the time to respawn.
     129            @param time New time after which this gets re-actived.
     130            */
     131            inline void setRespawnTime(float time)
     132                { this->respawnTime_ = time; }
     133
     134            void setMaxSpawnedItems(int items); //!< Sets the maximum number of spawned items.
     135
    116136        private:
    117137            void initialize(void);
     
    131151                { this->blocked_.insert(std::pair<PickupCarrier*, std::time_t>(carrier, std::time(0)+time)); }
    132152
    133             /**
    134             @brief Set the distance in which to trigger.
    135             @param value The new distance in which to trigger.
    136             */
    137             inline void setTriggerDistance(float value)
    138                 { this->triggerDistance_ = value; }
    139             /**
    140             @brief Set the time to respawn.
    141             @param time New time after which this gets re-actived.
    142             */
    143             inline void setRespawnTime(float time)
    144                 { this->respawnTime_ = time; }
     153           
     154           
    145155
    146             void setMaxSpawnedItems(int items); //!< Sets the maximum number of spawned items.
    147 
    148             void setPickupTemplateName(const std::string& name);
    149             void setPickupTemplate(Template* temp);
    150156
    151157            Pickupable* createPickup(void); //!< Creates a new Pickupable.
Note: See TracChangeset for help on using the changeset viewer.