Text Pointers

Blitz3D Forums/Blitz3D Beginners Area/Text Pointers

Mental Image(Posted 2003) [#1]
I have a load of data that points to various information about where to get information for each level in a game e.g.

data bob_address,lines_address,init_level_address etc

plus a load of other stuff about that level. I want to be able to read that data into a TYPE, and then use the values to be able to use those pointers within my program. So, lets say my TYPE was:

TYPE Level
Field bobs
Field lines
field init_level etc

I want later in the program to say something like

MyPointer.Level = New Level

read all the data in, and then use

Restore MyPointer.Level\bobs

to point to the data for the bobs on that level. This is indirect addressing, but I am unsure of what datatypes to use (having trouble using strings). Any ideas? I am using BlitzPlus, btw.

Thanks.


Mental Image(Posted 2003) [#2]
Ok, no need to reply as I have just searched through the archives and found out that I can't do what I wanted to.


Oh well, seems a shame, but it's not the end of the world!


eBusiness(Posted 2003) [#3]
Dunno if you need a type, often arrays can do. Anyway, keep your datatypes to numbers as often as possible, you have your data seperated by ,'s? If so you will need to read it byte by byte. Hard to tell it all, your description of the problem is a bit messy.