OOP dilemna

BlitzMax Forums/BlitzMax Programming/OOP dilemna

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm not sure if this solves your problem but it might. You can loop any object type in your Tlist.

'Loop all SpotLights in your LightList
For local Light:SpotLight = Eachin LightList
     If Light.Radius > Light.Cone
       'do what you want
     Endif
Next
'Loop all PointLights in your LightList
For local Light:PointLight = Eachin LightList
     If Light.PointCenter < Z
       'Do something :)
     Endif
     'In this case Light is always of the Pointlight type.
Next