Re: Variables carried across classes? [message #1411514] |
Sat, 23 August 2014 11:17 |
Eclipse User |
|
|
|
On 08/22/2014 12:52 AM, Made Leine wrote:
> I want to move this method into another class where I can transfer
> variables across the two.
>[snip]
> I want to use this method multiple times over my game, but I can't
> access my stamina, skill and luck etc. variables from the class that has
> this method.
>
> Please help!
Your question is a little too broad and, anyway, this is not the forum
you're looking for. I would:
1) trim back the length of the example to just a few lines.
2) consider an additional example of what I've tried to do that fails.
3) post it in an appropriate forum.
May I suggest javaranch.com (pick the general, Java forum there) or
stackoverflow.com.
Cheers
|
|
|
Powered by
FUDForum. Page generated in 0.10999 seconds