So, I'm attempting to make a method to return many integers and set them.
I would like to be able to set this variables and call them.I have no clue how this would work.Code:public void GetPlayerLocation(int Location,int LastLocation){
}
Printable View
So, I'm attempting to make a method to return many integers and set them.
I would like to be able to set this variables and call them.I have no clue how this would work.Code:public void GetPlayerLocation(int Location,int LastLocation){
}
Do these integers should be set as random numbers or numbers that should have some predefined values that are not random?
What will have in common variables int Location and int LastLocation with many numbers that you'll set?
They will be set to a starting location then the user will be able to charge these, the integers will be called in other classes, and set in other classes.
Maybe you should write class Location that has private variables int Location and int LastLocation, and write constructor for Location class that will set this variables.