Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 13, 2017, 4:34:53 PM (7 years ago)
Author:
remartin
Message:

Pickup generating works now after changing privacy settings of set methods in PickupSpawner.h. Added lots of debugging messages, spawnChildren does lead to a crash, still.

Location:
code/branches/AsteroidMining_HS17/src/modules/pickup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/AsteroidMining_HS17/src/modules/pickup/Pickup.h

    r11071 r11561  
    145145            virtual void changedPickedUp(void) override; //!< Should be called when the pickup has transited from picked up to dropped or the other way around.
    146146
     147
     148            virtual bool createSpawner(void) override; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.
     149
     150
    147151        protected:
    148             virtual bool createSpawner(void) override; //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable.
    149152
    150153            /**
  • code/branches/AsteroidMining_HS17/src/modules/pickup/PickupSpawner.h

    r11071 r11561  
    114114                {return this->pickupTemplate_; }
    115115
     116
     117            void setPickupTemplateName(const std::string& name);
     118            void setMaxSpawnedItems(int items); //!< Sets the maximum number of spawned items.
     119
     120            inline void setRespawnTime(float time)
     121                { this->respawnTime_ = time; }
     122
     123
    116124        private:
    117125            void initialize(void);
     
    141149            @param time New time after which this gets re-actived.
    142150            */
    143             inline void setRespawnTime(float time)
    144                 { this->respawnTime_ = time; }
    145151
    146             void setMaxSpawnedItems(int items); //!< Sets the maximum number of spawned items.
    147152
    148             void setPickupTemplateName(const std::string& name);
     153
    149154            void setPickupTemplate(Template* temp);
    150155
Note: See TracChangeset for help on using the changeset viewer.