now a beginer TYPE question

BlitzMax Forums/BlitzMax Beginners Area/now a beginer TYPE question

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.

Another Example for Global lists in types would be this:

Type Tparticle
	Global particle_list:TList
	
	Field x,y
	Field Emitter
	...
	
	Function create()
	Particle_List.Addlast(Particle)
	End Function
	
	Function Render()
	For Local p:Tparticle =  EachIn particle_list
	p.Update()
	Next
	End Function
	
	Method Update()
	...
	End Method
	
End Type

While Not KeyHit(Key_Escape)

TParticle.Render()

Wend