I want to make my game-coding very flexible; so I wanted to make the game automatically load new Mobs from a folder named "mobs".
This must be only at startup; not while it's already running.
I just want to put a file with a name like "mouse.jar" (or others -> dynamic) into this folder, and the game should load it at startup.
I already saw this in "Robocode" (Robots) and "MCForge" (whole Mods), so it must be possible.
Can anyone tell me, how is it possible to load classes as resources in game at startup, regardless of the quantity?