Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(theClosestBot != me){
- if(IsXnotY){
- if(getDetaX(me, theClosestBot) > 0){//right
- return BattleBotArena.RIGHT;
- } else {//left
- return BattleBotArena.LEFT;
- }//end of if
- } else {
- if(getDetaY(me, theClosestBot) > 0){//down
- return BattleBotArena.DOWN;
- } else {//up
- return BattleBotArena.UP;
- }
- }//end of if-else for isXnotY
- } else {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement