Quote:
Originally Posted by Arhowk
Something like this
Code:
static Robot r
public static void setRobot(Robot rob){
r = rob;
}
//in Robot.java
AutonManager.setRobot(this);
or
Code:
Robot robot
public AutonManager(Robot r){
this.robot =r;
}
//in Robot.java
AutonManager autonManager;
public void robotInit(){
autonManager = new AutonManager(this);
}
|
Would this be okay?
Code:
public class Auto {
static Robot r
public static void setRobot(Robot rob) {
r = rob;
}
And when I have this in do I need to put r in front of everything still?