Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 7 and Version 8 of code/doc/Pickups


Ignore:
Timestamp:
Mar 20, 2010, 9:41:23 AM (15 years ago)
Author:
dafrick
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/Pickups

    v7 v8  
    215215Be aware, this only works for parameters that are simple enough, meaning with pointers for example it will, naturally, not work.
    216216
     217 * createSpawner() The createSpawner() method needs to be implemented by any pickup directly inheriting from Pickupable (so if you inherit from Pickup, you don't need to implement this). It is used to create a spawner when the pickup is dropped. A standard implementation would look like this.
     218{{{
     219bool MyPickup::createSpawner(void)
     220{
     221    new DroppedPickup(this, this, this->getCarrier());
     222    return true;
     223}
     224}}}
     225
    217226=== Making your object pickupable ===
    218227