Im trying to convert the LIST functions from this to C++:
Anyone know?
Global tweaponlist:TList=New TList Type tweapon Field originX#, originY#, power, h:Iscenenode Field dir:Byte,style:Byte,friendly:Byte Method updatebullets() dg_Movenode h,1,0,0 If DG_NodeX(h)>680 drop();Return End Method Method drop() h.remove() tweaponlist.remove(Self) End Method End Type Function UpdateAllWeapons() bulletcount=0 For Local w:tweapon=EachIn tweaponlist bulletcount :+ 1 Select w.style Case WEP_BULLET w.updatebullets() End Select Next End Function
Anyone know?