[Jais-checkins] jaisteam/src/jais/objects SenseBodyInfo.java,1.10,1.11
Status: Beta
Brought to you by:
maestrodd
|
From: <mae...@us...> - 2002-07-13 20:29:27
|
Update of /cvsroot/jais/jaisteam/src/jais/objects
In directory usw-pr-cvs1:/tmp/cvs-serv2840/objects
Modified Files:
SenseBodyInfo.java
Log Message:
set storage time to 2 seconds
changeViewModes implemented (all modes supported now)
Index: SenseBodyInfo.java
===================================================================
RCS file: /cvsroot/jais/jaisteam/src/jais/objects/SenseBodyInfo.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** SenseBodyInfo.java 8 Jul 2002 02:27:15 -0000 1.10
--- SenseBodyInfo.java 13 Jul 2002 20:29:24 -0000 1.11
***************
*** 10,65 ****
public class SenseBodyInfo
{
! // These are the variables set by Parser. They are directly given from the server
! public double m_neckDirection;
! public int m_time;
! public String m_viewQuality;
! public String m_viewMode;
! public double m_stamina;
! public double m_effort;
! public double m_amountOfSpeed;
! public int m_directionOfSpeed;
! public int m_kickCount;
! public int m_dashCount;
! public int m_turnCount;
! public int m_sayCount;
! public int m_turnNeckCount;
! public int m_catchCount;
! public int m_moveCount;
! public int m_changeViewCount;
! /**
! * This method returns the corresponding angle to the given viewmode
! * @param f_viewmode the viewmode we want the angle of
! * @return Angle of f_viewmode
! */
! public static int getAngleFromViewMode(String f_viewmode)
! {
if(f_viewmode.equalsIgnoreCase("wide"))
! return 180;
else if(f_viewmode.equalsIgnoreCase("normal"))
! return 90;
else if(f_viewmode.equalsIgnoreCase("narrow"))
! return 45;
return -1;
! }
!
- /**
- * This method sets the neck direction
- * @param f_neckDirection contains the value which is setted
- */
- public void setNeckDirection(double f_neckDirection) { m_neckDirection=f_neckDirection;}
! /**
! * This method sets the view mode: {high|low} {narrow|normal|wide}
! * @param f_viewMode contains value which is setted: {high|low} {narrow|normal|wide}
! */
! public void setViewMode(String f_viewMode) { m_viewMode=f_viewMode; }
! /**
! * Access method for time
! * @return the time
! */
! public int getTime() {return m_time;}
! }
--- 10,65 ----
public class SenseBodyInfo
{
! //different view modes
! public static final int NARROW = 0;
! public static final int NORMAL = 1;
! public static final int WIDE = 2;
! // These are the variables set by Parser. They are directly given from the server
! public double m_neckDirection;
! public int m_time;
! public String m_ViewQuality;
! public String m_viewMode;
! public double m_stamina;
! public double m_effort;
! public double m_amountOfSpeed;
! public int m_directionOfSpeed;
! public int m_kickCount;
! public int m_dashCount;
! public int m_turnCount;
! public int m_sayCount;
! public int m_turnNeckCount;
! public int m_catchCount;
! public int m_moveCount;
! public int m_changeViewCount;
!
!
! /**
! * This method returns the corresponding angle to the given viewmode
! * @param f_viewmode the viewmode we want the angle of
! * @return Angle of f_viewmode
! */
! public static int getAngleFromViewMode(String f_viewmode)
! {
if(f_viewmode.equalsIgnoreCase("wide"))
! return 180;
else if(f_viewmode.equalsIgnoreCase("normal"))
! return 90;
else if(f_viewmode.equalsIgnoreCase("narrow"))
! return 45;
return -1;
! }
! /**
! * This method sets the neck direction
! * @param f_neckDirection contains the value which is setted
! */
! public void setNeckDirection(double f_neckDirection) { m_neckDirection=f_neckDirection;}
! /**
! * Access method for time
! * @return the time
! */
! public int getTime() {return m_time;}
! }
\ No newline at end of file
|