We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,324 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Enemy Storage/Selection file

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.

1
Contributor
0
Replies
1
View
Bob4life2000
Newbie Poster
7 posts since Oct 2003
Reputation Points: 11
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0479 seconds using 2.63MB