An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons
Go Back  Xtreme Visual Basic Talk > > > An Array of Ships, Each With An Array of Weapons


Reply
 
Thread Tools Display Modes
  #1  
Old 07-13-2011, 05:47 PM
Xventure35 Xventure35 is offline
Newcomer
 
Join Date: Nov 2010
Posts: 1
Default An Array of Ships, Each With An Array of Weapons


Hello, so ill keep it brief. I have a program where automated ai ships with vector graphics shoot aimed bullets, seeking missiles, and laid bombs with exploding particles when gravity sucks them in. I am hopefully going to be able to create an array of ships, each with an array of each weapon. So Ships(intShipNumber).Bullet(intBulletNumber) would allow each ship of say, 100, be able to shoot its own array of bullets. The Missiles and Bombs would be the same way, and each ship can have more than one bullet, rocket, or bomb on screen at once.

Public Type Ship
Bullets(5) As Bullet
Rockets(3) As Rocket
Bombs(2) As Bomb
Etc...
End Type

Global Ships(100) As Ship

Public Type Bullet
X as integer
Y as integer
Etc...
End Type

Etc...

So each of the 100 ships would have 5 bullets to cycle through.. I am wondering if this is even a correct method of trying to accomplish this?
Reply With Quote
  #2  
Old 07-14-2011, 11:02 AM
passel's Avatar
passelAn Array of Ships, Each With An Array of Weapons passel is offline
Sinecure Expert

Super Moderator
* Guru *
 
Join Date: Jun 2003
Location: Upstate New York, usa
Posts: 8,024
Default

Seems reasonable.
__________________
There Is An Island Of Opportunity In The Middle of Every Difficulty.
Miss That, Though, And You're Pretty Much Doomed.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons
 
An Array of Ships, Each With An Array of Weapons
An Array of Ships, Each With An Array of Weapons
 
-->