Jim Maccauley
January 13th, 2000, 04:50 PM
1. Can a collection hold 2 different classes? The object wizard in VB6 allows me to put one class into the collection, but not more. I may be doing something wrong.
2. Types. Is this a valid Type definition :-
Type Player
'Stores all the player information
Units(0 to 999) as clsBattleGroup
'array of players battlegroups
'up to 1000 per player
Facilities(1 to 300) as clsFacility
'array of players facilities
'up to 300 per player
AreaScouted as VisibleMap
AreaCurrentlyVisible as VisibleMap
End Type
To be accessed : let Player.units(Index).MovementRate =5
last but not least, can an object property be a multidimensional array and if so how do the Let and Get methods work? (msdn doesn't give an example I can find)?
Thanks in advance.
They said 'Jump!'.
I said 'How high?'
They said 'We don't know, just jump.'
2. Types. Is this a valid Type definition :-
Type Player
'Stores all the player information
Units(0 to 999) as clsBattleGroup
'array of players battlegroups
'up to 1000 per player
Facilities(1 to 300) as clsFacility
'array of players facilities
'up to 300 per player
AreaScouted as VisibleMap
AreaCurrentlyVisible as VisibleMap
End Type
To be accessed : let Player.units(Index).MovementRate =5
last but not least, can an object property be a multidimensional array and if so how do the Let and Get methods work? (msdn doesn't give an example I can find)?
Thanks in advance.
They said 'Jump!'.
I said 'How high?'
They said 'We don't know, just jump.'