Changes between Version 7 and Version 8 of code/doc/Pickups
- Timestamp:
- Mar 20, 2010, 9:41:23 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/doc/Pickups
v7 v8 215 215 Be aware, this only works for parameters that are simple enough, meaning with pointers for example it will, naturally, not work. 216 216 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 {{{ 219 bool MyPickup::createSpawner(void) 220 { 221 new DroppedPickup(this, this, this->getCarrier()); 222 return true; 223 } 224 }}} 225 217 226 === Making your object pickupable === 218 227