| | |
Enemy Storage/Selection file
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
| 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 | |||
![]() |
•
•
Join Date: Oct 2003
Posts: 7
Reputation:
Solved Threads: 0
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.
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
- Reading EBCDIC file through C (C)
- Storage Help (Java)
- Saving STL Maps to file as Binary(Possible?) (C++)
- Move template functions to a .cpp file (C++)
- News Story: What does Yahoo define as "infinity"? (Ad Space for Sale)
- Sorting from a file (C)
- How to re-install software, I have lost my Calculator!! (OS X)
- New to Java (Java)
- Operating Systems assignment (C++)
Other Threads in the Java Forum
- Previous Thread: Linked arraylist
- Next Thread: comparing two strings with linear search..
| Thread Tools | Search this Thread |
Tag cloud for Java
affinetransform android api apple applet application arc arguments array arrays automation binary bluetooth businessintelligence chat class classes client code component database desktop draw ebook eclipse encode equation error event exception file fractal game givemetehcodez graphics gui helpwithhomework html ide image input integer intersect j2me java javaexcel javaprojects jmf jni jpanel julia linked linux list loop mac main map method methods mobile netbeans newbie number online open-source oracle parameter print problem program programming project properties recursion reference replaysolutions rotatetext scanner score screen scrollbar server set size sms socket sort sql string superclass swing template test threads time tree windows working xstream





