Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 21, 2012, 3:34:45 PM (12 years ago)
Author:
landauf
Message:

refactored PickupSpawner - it doesn't clone a sample-pickup anymore, it creates new pickups from a template.
removed DroppedPickup because it is not needed anymore, PickupSpawner has now the same functionality.
the representation of the pickup spawner is now destroyed if the pickup is taken and re-created if it spawns again (instead of changing the visibility). makes it easier to change the pickup in a spawner during the game.
adjusted all level files accordingly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012merge/data/levels/templates/pickupRepresentationTemplates.oxt

    r9318 r9319  
    1717</Template>
    1818
    19 <Template name=smallshieldpickup>
     19<Template name=smallshieldpickup baseclass=ShieldPickup>
    2020  <ShieldPickup
    2121    representation = "smallshieldpickup"
     
    4444</Template>
    4545
    46 <Template name=mediumshieldpickup>
     46<Template name=mediumshieldpickup baseclass=ShieldPickup>
    4747  <ShieldPickup
    4848    representation = "mediumshieldpickup"
     
    7272</Template>
    7373
    74 <Template name=hugeshieldpickup>
     74<Template name=hugeshieldpickup baseclass=ShieldPickup>
    7575  <ShieldPickup
    7676    representation = "hugeshieldpickup"
     
    101101</Template>
    102102
    103 <Template name=smallhealthpickup>
     103<Template name=smallhealthpickup baseclass=HealthPickup>
    104104  <HealthPickup
    105105    representation = "smallhealthpickup"
     
    127127</Template>
    128128
    129 <Template name=mediumhealthpickup>
     129<Template name=mediumhealthpickup baseclass=HealthPickup>
    130130  <HealthPickup
    131131    representation = "mediumhealthpickup"
     
    153153</Template>
    154154
    155 <Template name=hugehealthpickup>
     155<Template name=hugehealthpickup baseclass=HealthPickup>
    156156  <HealthPickup
    157157    representation = "hugehealthpickup"
     
    179179</Template>
    180180
    181 <Template name=crazyhealthpickup>
     181<Template name=crazyhealthpickup baseclass=HealthPickup>
    182182  <HealthPickup
    183183    representation = "crazyhealthpickup"
     
    241241</Template>
    242242
    243 <Template name=smalldamageboostpickup>
     243<Template name=smalldamageboostpickup baseclass=DamageBoostPickup>
    244244  <DamageBoostPickup
    245245    representation = "smalldamageboostpickup"
     
    267267</Template>
    268268
    269 <Template name=mediumdamageboostpickup>
     269<Template name=mediumdamageboostpickup baseclass=DamageBoostPickup>
    270270  <DamageBoostPickup
    271271    representation = "mediumdamageboostpickup"
     
    293293</Template>
    294294
    295 <Template name=largedamageboostpickup>
     295<Template name=largedamageboostpickup baseclass=DamageBoostPickup>
    296296  <DamageBoostPickup
    297297    representation = "largedamageboostpickup"
     
    322322</Template>
    323323
    324 <Template name=smallspeedpickup>
     324<Template name=smallspeedpickup baseclass=SpeedPickup>
    325325  <SpeedPickup
    326326    representation = "smallspeedpickup"
     
    349349</Template>
    350350
    351 <Template name=mediumspeedpickup>
     351<Template name=mediumspeedpickup baseclass=SpeedPickup>
    352352  <SpeedPickup
    353353    representation = "mediumspeedpickup"
     
    376376</Template>
    377377
    378 <Template name=hugespeedpickup>
     378<Template name=hugespeedpickup baseclass=SpeedPickup>
    379379  <SpeedPickup
    380380    representation = "hugespeedpickup"
     
    403403</Template>
    404404
    405 <Template name=smalljumppickup>
     405<Template name=smalljumppickup baseclass=SpeedPickup>
    406406  <SpeedPickup
    407407    representation = "smalljumppickup"
     
    432432</Template>
    433433
    434 <Template name=smallinvisiblepickup>
     434<Template name=smallinvisiblepickup baseclass=InvisiblePickup>
    435435  <InvisiblePickup
    436436    representation = "smallinvisiblepickup"
     
    457457</Template>
    458458
    459 <Template name=mediuminvisiblepickup>
     459<Template name=mediuminvisiblepickup baseclass=InvisiblePickup>
    460460  <InvisiblePickup
    461461    representation = "mediuminvisiblepickup"
     
    482482</Template>
    483483
    484 <Template name=hugeinvisiblepickup>
     484<Template name=hugeinvisiblepickup baseclass=InvisiblePickup>
    485485  <InvisiblePickup
    486486    representation = "hugeinvisiblepickup"
     
    507507</Template>
    508508
    509 <Template name=smallshrinkpickup>
     509<Template name=smallshrinkpickup baseclass=ShrinkPickup>
    510510  <ShrinkPickup
    511511    representation = "smallshrinkpickup"
     
    533533</Template>
    534534
    535 <Template name=mediumshrinkpickup>
     535<Template name=mediumshrinkpickup baseclass=ShrinkPickup>
    536536  <ShrinkPickup
    537537    representation = "mediumshrinkpickup"
     
    559559</Template>
    560560
    561 <Template name=hugeshrinkpickup>
     561<Template name=hugeshrinkpickup baseclass=ShrinkPickup>
    562562  <ShrinkPickup
    563563    representation = "hugeshrinkpickup"
     
    589589</Template>
    590590
    591 <Template name=triplehealthspeedinvisibilitypickup>
     591<Template name=triplehealthspeedinvisibilitypickup baseclass=PickupCollection>
    592592    <PickupCollection
    593593        representation = "triplehealthspeedinvisibilitypickup"
     
    651651</Template>
    652652
    653 <Template name=dronepickup>
     653<Template name=dronepickup baseclass=DronePickup>
    654654    <DronePickup representation=dronepickup droneTemplate=droneTemplate />
    655655</Template>
Note: See TracChangeset for help on using the changeset viewer.