IMPORTS

BlitzMax Forums/BlitzMax Programming/IMPORTS

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

A package can be whatever you want. In actuallity you should combine the Package idea with the Module idea so that there is a uniform way of organizing code. So basically you have the languages modules (brl.blitz, brl.max2d...), your own modules (rds.tools, rds.coolstuff...) and your project modules (rds.CoolGame, rds.MapEditor...). So my game would be in rds.Spacewar module, and would have access to all files in the Packages (Spacewar.bmx, Ship.bmx, Missile.bmx...) and THEN all the classes in a module will be able to successfully (and without cyclic imports or messy includes) access eachother and create a more powerful and more organized program.