Surely you know what you have to do now. Like all the other main objects we have created so far, each rocket will have its own class, which is located in its own file.
gameClasses, and a global
Strict Import gameClasses Global rockets := New List<rocket>
Just like with cities and launchers, we will have some wrapper functions. Let's start with the function to update all rockets.
UpdateRocketsfunction. There we loop through the
rocketslist and call the
Updatemethod of each rocket we find.
Function UpdateRockets:Int() For Local rocket := ...