The before and after command are in BlitzMax they are just hidden from you =)
They are in the TList Type, which you use when you create Lists.
I assume you have a type of which you created an instance called BattleCruiser, here is some commands:
BattleCruiserList:TList = CreateList()
* Add stuff to the list
BattleCruiserList.AddFirst( BattleCruiser )
BattleCruiserList.AddLast( BattleCruiser2 )
newLink:TLink=FindLink(BattleCruiser)
newLink.InsertAfterLink(BattleCruiser2)
When you deal with Lists you deal with a ListType which contains LinkTypes, each TLink which in turn contains YourType. If The Links are sorted so are YourObjects. Find the right Linkm insert it before/After. If I have time I guess I'll try to make a sort-TypeList function because it is quite complicated escpecially if you are not into OOP yet, but If you already know how to do a sort-Type-list in Blitz3D then this shouldn't be impossible.
If you wounder wherefrom I get all commands check out your BlitzMax folder\Mod\brl.mod\LinkedList.Mod\LinkedList.bmx
They are in the TList Type, which you use when you create Lists.
I assume you have a type of which you created an instance called BattleCruiser, here is some commands:
BattleCruiserList:TList = CreateList()
* Add stuff to the list
BattleCruiserList.AddFirst( BattleCruiser )
BattleCruiserList.AddLast( BattleCruiser2 )
newLink:TLink=FindLink(BattleCruiser)
newLink.InsertAfterLink(BattleCruiser2)
When you deal with Lists you deal with a ListType which contains LinkTypes, each TLink which in turn contains YourType. If The Links are sorted so are YourObjects. Find the right Linkm insert it before/After. If I have time I guess I'll try to make a sort-TypeList function because it is quite complicated escpecially if you are not into OOP yet, but If you already know how to do a sort-Type-list in Blitz3D then this shouldn't be impossible.
If you wounder wherefrom I get all commands check out your BlitzMax folder\Mod\brl.mod\LinkedList.Mod\LinkedList.bmx