[Jais-checkins] jaisteam/src/jais/objects FlagInfo.java,1.10,1.11 Coordinate.java,1.12,1.13 AurealIn
Status: Beta
Brought to you by:
maestrodd
|
From: <mae...@us...> - 2002-07-15 09:27:26
|
Update of /cvsroot/jais/jaisteam/src/jais/objects
In directory usw-pr-cvs1:/tmp/cvs-serv15661/objects
Modified Files:
FlagInfo.java Coordinate.java AurealInfo.java
Log Message:
many many cahnges ;) version 1.01 is ready !
Index: FlagInfo.java
===================================================================
RCS file: /cvsroot/jais/jaisteam/src/jais/objects/FlagInfo.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** FlagInfo.java 8 Jul 2002 07:17:57 -0000 1.10
--- FlagInfo.java 15 Jul 2002 09:27:23 -0000 1.11
***************
*** 87,114 ****
public String getFlagType(){return m_flagType;}
- /**
- * Method to switch all the flag positions
- * This is done if we play on left side
- */
- public static synchronized void switchFlagPositions()
- {
- /*this is corrected in the positioning System at the moment
- System.out.println("------------------------tried");
- if (!m_alreadySwitched)
- {
- System.out.println("------------------------switched");
- Coordinate l_tempCoord;
- Object l_tempKey;
- for(Enumeration e=FLAG_POSITIONS.keys();e.hasMoreElements();)
- {
- l_tempKey=e.nextElement();
- l_tempCoord=(Coordinate)FLAG_POSITIONS.get(l_tempKey);
- FLAG_POSITIONS.put(l_tempKey, (new Coordinate(-l_tempCoord.getX(), -l_tempCoord.getY())));
- }
- m_alreadySwitched=true;
- }
- */
- }
-
public Coordinate getAbsPosition()
{
--- 87,90 ----
Index: Coordinate.java
===================================================================
RCS file: /cvsroot/jais/jaisteam/src/jais/objects/Coordinate.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** Coordinate.java 8 Jul 2002 06:41:08 -0000 1.12
--- Coordinate.java 15 Jul 2002 09:27:24 -0000 1.13
***************
*** 108,111 ****
--- 108,116 ----
}
+ public Coordinate normalize()
+ {
+ return (this.scaleWith(Math.sqrt(m_x*m_x+m_y*m_y)));
+ }
+
/**
* This method calculates the distance between this coordinate and f_coord
Index: AurealInfo.java
===================================================================
RCS file: /cvsroot/jais/jaisteam/src/jais/objects/AurealInfo.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** AurealInfo.java 8 Jul 2002 00:17:40 -0000 1.8
--- AurealInfo.java 15 Jul 2002 09:27:24 -0000 1.9
***************
*** 23,30 ****
public static final int CORNER_KICK_L = 9;
public static final int CORNER_KICK_R = 10;
! public static final int GOAL_KICK_L = 11;
! public static final int GOAL_KICK_R = 12;
! public static final int GOAL_L = 13;
! public static final int GOAL_R = 14;
public static final int DROP_BALL = 15;
public static final int OFFSIDE_L = 16;
--- 23,30 ----
public static final int CORNER_KICK_L = 9;
public static final int CORNER_KICK_R = 10;
! public static final int GOAL_L = 11;
! public static final int GOAL_R = 12;
! public static final int GOAL_KICK_L = 13;
! public static final int GOAL_KICK_R = 14;
public static final int DROP_BALL = 15;
public static final int OFFSIDE_L = 16;
***************
*** 54,61 ****
"corner_kick_l",
"corner_kick_r",
"goal_kick_l",
"goal_kick_r",
- "goal_l",
- "goal_r",
"drop_ball",
"offside_l",
--- 54,61 ----
"corner_kick_l",
"corner_kick_r",
+ "goal_l",
+ "goal_r",
"goal_kick_l",
"goal_kick_r",
"drop_ball",
"offside_l",
|