943,742 Members | Top Members by Rank

View Poll Results: Do you think that I am trying to do too much for a beginner programmer?
Yes! 1 100.00%
No Way! 0 0%
Voters: 1. You may not vote on this poll

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2493
  • Java RSS
Oct 13th, 2003
0

Enemy Storage/Selection file

Expand Post »
Okay in case anybody was wondering I solved the class call problem.

Now I am trying to create a file for Enemy characters that will store appx 100 different Enemies and depending on the level of the main character apply different stats to those enemies along with a randomly selected name, I also intend to use the basis of this code to create NPCs and shops randomly. Every shop will be filled with a number (1-10) NPCs who will be randomly selected and placed there. Included is a sample of the current enemy code I am using. I haven't set values except for the name here because in my main file I call this snippet and assign everything there.
class Enemy
{String name=("George");
int Hp;
int Pp;
}
This is allowing me to make a new enemy in my main file but...
it does not give me the freedom I need.

As I said in my first post I am realetivly new to Java and, I probably should no be jumping in head first like this, but any help you can give would be greatly appreciated. Thank you.
Similar Threads
Reputation Points: 11
Solved Threads: 0
Newbie Poster
Bob4life2000 is offline Offline
7 posts
since Oct 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Linked arraylist
Next Thread in Java Forum Timeline: comparing two strings with linear search..





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC