Advertisement

Dynamic content in Java?

Started by April 29, 2009 03:59 AM
-1 comments, last by Chokki 15 years, 6 months ago
I'm working on some general concepts related to games with a friend, using Java. It's not what I would personally write games in, but bear with me - we're just using it as a concept proving tool. The problem we have right now is with creating objects on the fly, using arrays. The user should be able to input the number of objects he wants to create, modify the attributes of each object as he makes it, and then reference the object at a later time. It's the last requirement that's the kicker - I've thought about storing the date from each object into an array - which might possible because the user will define how many objects he is creating before hand? The example in question is creating characters en masse for a game. Each one has a name, a sex, and an age.
Quote: Original post by EtnuBwahaha. I would've shot the guy in the balls.

This topic is closed to new replies.

Advertisement