...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
// assuming we have a droid object "myDroid" and a location defined by it's x,y co-ordinates...
if (droidCanReach(myDroid,x,y)) {
orderDroidLoc(myDroid,DORDER_PATROL,x,y);
} |
...
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
// assuming we have a droid object "myDroid" and a location defined by it's x,y co-ordinates...
if (droidCanReach(myDroid,x,y)) {
orderDroidLoc(myDroid,DORDER_PATROL,x,y);
} |
...