[Jais-checkins] jaisteam/src/jais/player KI.java,1.80,1.81
Status: Beta
Brought to you by:
maestrodd
|
From: <mae...@us...> - 2002-07-15 09:45:15
|
Update of /cvsroot/jais/jaisteam/src/jais/player
In directory usw-pr-cvs1:/tmp/cvs-serv20136
Modified Files:
KI.java
Log Message:
goalie is a bit better now
Index: KI.java
===================================================================
RCS file: /cvsroot/jais/jaisteam/src/jais/player/KI.java,v
retrieving revision 1.80
retrieving revision 1.81
diff -C2 -d -r1.80 -r1.81
*** KI.java 15 Jul 2002 09:27:23 -0000 1.80
--- KI.java 15 Jul 2002 09:45:12 -0000 1.81
***************
*** 645,652 ****
}
else
! if (nearestToTheBall())
! takeTheBall();
! else
! goBetweenBallGoalAndWatchIt(ServerConf.GOAL_WIDTH/2);
}
}
--- 645,669 ----
}
else
! {
! // if (nearestToTheBall())
! // takeTheBall();
! Coordinate l_coord = (m_myWorld.getBall().getAbsPositionOfNextRound()!=null) ? m_myWorld.getBall().getAbsPositionOfNextRound() : m_myWorld.getBall().getAbsPosition();
! if(l_coord.getX()<-41 && Math.abs(l_coord.getY())<14)
! {
! m_actions.runTo(MAXPOWER,l_coord,m_myWorld.getViewModeAsInt());
! }
! else
! {
! if(l_coord.sub(m_myWorld.getBall().getAbsPosition()).getX()>0 && l_coord.sub(m_myWorld.getBall().getAbsPosition()).getY()>0)
! {
! goBetweenBallGoalAndWatchIt(ServerConf.GOAL_WIDTH/2);
! }
! else
! if (nearestToTheBall())
! takeTheBall();
! else
! goBetweenBallGoalAndWatchIt(ServerConf.GOAL_WIDTH/2);
! }
! }
}
}
|