For the first major problem, the bug lies somewhere within locationTest and/or battleTest.
In the second problem, which is only discoverable by either directly sending enemy data to battle test from...
Type: Posts; User: ZeroLRS
For the first major problem, the bug lies somewhere within locationTest and/or battleTest.
In the second problem, which is only discoverable by either directly sending enemy data to battle test from...
In actuallty, there are no errors per-say. But it will do things like print null values, and not show variable changes.
Here are all of the source files.
GameD01:
import java.util.Scanner;...
There are quite a few errors in my code and I have no idea on how to go about fixing them.
It is a game, and the list of errors is in the "Information" file of the included .zip file.
If you have...
Darn, I plan to have several hundred "plant<plantname>" classes.
I felt like being lazy and not making a VERY long else if...
All that is contained in the "plant<plantname>" classes is several...
1st question:
The object after plant means that I want to have the word plant (the prefix for all my plant<plantname> classes) to have the value of the string directly after it.
ie, I have:...
But the string from the array needs to be in the object after plant.
So if I have plantList[0] as tree and I'm making the new object to get info from plantTree.java, I need the computer to read it...
Say I have a list of plants and a bunch of plant<Plantname> classes.
I want to be able to use a plant from the array to create an object for referencing a plant<Plantname> class.
My first class....
Looking at my code now, I've already started most of the battle system's core.
I'm amazed that I wrote all of this stuff. Even more so that I started java yesterday.
Thank you so much!
In the videos I'm watching, I haven't gotten to equals yet, this worked perfectly.
When I finish this in however many months it will take me, I'm gonna put you in the credits :)
I'm an idiot when it comes to editing my own code....
In eclipse I changed the choice if to:
if(operation == stats){
but in my post, I changed it to:
if(stats){
How do you suppose I make it...
It prints:
op=stats< stats=null<
which tells me that the if should go off, but it still doesn't.
NOTE: In the code of the original post, I changed the choice if to a regular if, the choice was...
I have recently started to learn java and wanted skills to test my skills so far. I started making a small text-based game and have hit an early roadblock.
I have two classes so far, one for the...