I'm not very articulate but I will try my best to describe what I'm trying to do.
I'm trying to build a world in java, a world where I can work on pieces/objects (by coding on underlying attributes and/or behaviour) and plug them in (at any time) and watch their interactions which each other.
I intend for my movable "objects" to need only the most basic underlying properties like position / speed / health & temperment.
(temperment being the thing I would adjust differently with different object types)
Once created, I don't want to 'stop' the world (ie: recompile etc), but I want the ability to work on new objects at a later date and introduce them when I want. I want to leave my world on always (24/7) and in the meantime, when I code up new 'things' I can introduce them somehow to the world and let them roam free...
I don't want fancy graphics.
No intention for any network stuff or anything like that. (actual intention is more of a personal petri-dish.
The 'world' can be a simple black jframe/jpanel.
Object will be a represented graphicly by a single moving pixel. (different object types to be different colours)
I want it to be turn-based, so an engine/heartbeart simply lets each 'object' take it's turn.
I also need some type of textfield or flat-file that logs events... (for when interactions occur when I'm asleep)
Other than the 'world' panel, I need some open-file dialog? or some component as a facility to 'introduce new objects... (or maybe just use a menuitem to a dialog?)
Anyway... that above isn't too hard to figure out...
...which brings me to the crux of my problem:
What I don't understand is how I would design the infrastructure to 'load' new obejcts into my 'world' once the world is running... I don't know how, or even if I can do this??