Was wondering what scripters mostly use? And why one over the other?
Which situation would you use task over states and the reverse?
Note: still learning scripting... so excuse the dumb questions pls
This is why "States" suck:
What looks cleaner, this:
enum State {
CHOP,
WALK_TO_BANK,
WALK_TO_TREES,
BANK
}
@Override
public int onLoop() throws InterruptedException {
switch(getState()) {
case CHOP:
chop();
break;
case WALK_TO_BANK:
getWalking()....
break;
case WALK_TO_TREES:
getWalking()....
break;
case BANK:
bank();
break;
}
retu