Types? TList? Globals?

BlitzMax Forums/BlitzMax Beginners Area/Types? TList? Globals?

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 reading through types, I though I knew about types but I'm having quite some problems when I actually try my hands at it:

I wana know, do type globals stay in types? and do I need to do mytype.my_global_var to access it? or:
local instance:mytype.my_global_var?

How do I access list within types?

Type Troom
	Field w:Int
	Field h:Int
	
	' Room List
	Global RoomList:TList=New TList
	' On Creation
	Method New()
		RoomList.AddLast(Self)
	End Method
End Type


Then I try to access it using:

intro:Troom=New Troom
level1:Troom=New Troom
level2:Troom=New Troom

For Local s:String=EachIn RoomList
    Print s
Next

It's not working for some reason... I dont understand TList too well. I also tryed to do RoomList.Count() but didnt work.. says count's not an identifier.. or something..

oh and if I understand correctly
method new() is every time an instance(object) is created it is runed for that instance..?

I'm a Type, TList.. confused individual..