thanks that was what I was looking for
I just have a little problem understand this part:
For n = 0 To 4
this.turretType = New turretType
this\rotation = 45
this\elevation = 10
tank\turrets[n] = this
Next
Why does tank/turrets[n] = this?
Is it so the tank type knows which turret type belongs to it?
I just have a little problem understand this part:
For n = 0 To 4
this.turretType = New turretType
this\rotation = 45
this\elevation = 10
tank\turrets[n] = this
Next
Why does tank/turrets[n] = this?
Is it so the tank type knows which turret type belongs to it?