Excuse me if this is a dumb question. I've been learning Java in order to grow my OO chops, and I'm getting a good handle on it. I'm coming back to BMax for a bit now, since I was able to pick up the OO stuff far more easily in Java, and now wish to tinker with ideas again with BMax.
I've come up against something that's confusing me.
I have a member of my player object, 'host', which is supposed to refer to a 'host' object.
ie.
newplayer=player.create()
newplayer.host=host.create()
newplayer.host should now contain the pointer to a host object.
Is there a way I can access the members of host directly through this? ie newplayer.host.name$ (to access the name$ member of the host object who's handle is stored in newplayer.host)
Does this make any sense?
I've come up against something that's confusing me.
I have a member of my player object, 'host', which is supposed to refer to a 'host' object.
ie.
newplayer=player.create()
newplayer.host=host.create()
newplayer.host should now contain the pointer to a host object.
Is there a way I can access the members of host directly through this? ie newplayer.host.name$ (to access the name$ member of the host object who's handle is stored in newplayer.host)
Does this make any sense?