Game Programming and Development Tools

Arrays within types/Type arrays – Mene-Mene

Mene-Mene

Member

Posts: 1398
From: Fort Wayne, IN, USA
Registered: 10-23-2006
Alright, I've heard that you can do this.

Ex.


Type Ship

Field Action$[0,1]

End Type

But can you like in BM (Or what I've heard of it) do this?


Type Player

Field Ships$[]

End Type

In essence I don't know how many ships he'll recieve, but I'll give them to him.

And can you do this?


Shipp[].Ship = New Ship

BTW this is in Blitz3d/BlitzBasic

------------------
MM out-
Thought travels much faster than sound, it is better to think something twice, and say it once, than to think something once, and have to say it twice.
"Frogs and Fauns! The tournament!" - Professor Winneynoodle/HanClinto