Help: LinkedLists with Type's

BlitzMax Forums/BlitzMax Beginners Area/Help: LinkedLists with Type's

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.

What exactly are you trying to do? If you want a linked list of all the players then you would do:

Type Player						'Caps looks like shouting
	Global List:TList=New TList	'Specific to type decleration, not instances

	Method New()				'Automatically called, its the constructor
		List.AddLast(self)		'Adds the created Player to the list of players
	EndMethod

	Field x#,y#,z#				'# is for floating point variables
End Type

Me:Player=New Player			'Auto-calls new method