|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DynObject | +--PlayerInfos | +--OwnPlayerInfos
This class is used to represent all co- and opponent players all atributes of superclass PlayerInfos plus:
Field Summary | |
AudioInfo |
audioInfo
|
private java.util.LinkedList |
audioInfos
|
private int |
audioInfoSize
|
private int |
dashCount
|
private double |
effort
|
private int |
kickCount
|
private int |
oppGoal
|
private int |
ourGoal
|
private int |
playMode
|
private double |
recovery
|
private int |
sayCount
|
private char |
side
|
private double |
stamina
|
private int |
turnCount
|
private int |
turnNeckCount
|
private boolean |
viewQual
|
private int |
viewWidth
|
Fields inherited from class PlayerInfos |
dirBody, dirHead, number |
Fields inherited from class DynObject |
dirChange, dirVector, formerDirVector, formerPosition, formerTime, position, speedChange, time |
Constructor Summary | |
(package private) |
OwnPlayerInfos()
constructor for an OwnPlayerIinfo object with all its parameters initialized with 0, NaN or false |
(package private) |
OwnPlayerInfos(int time,
java.awt.geom.Point2D.Double position,
java.awt.geom.Point2D.Double formerPosition,
java.awt.geom.Point2D.Double dirVector,
java.awt.geom.Point2D.Double formerDirVector,
double speedChange,
double dirChange,
double dirBody,
double dirHead,
int number,
double stamina,
double effort,
boolean viewQual,
int viewWidth,
int kickCount,
int dashCount,
int turnCount,
int sayCount,
int turnNeckCount,
AudioInfo audioInfo,
char side,
int ourGoal,
int oppGoal,
int playMode,
double recovery)
constructor for an OwnPlayerInfos objects which contains all informations about a player |
Method Summary | |
void |
addAudioInfo(AudioInfo audioInfo)
adds a new audioinfo to the message queue, if size of audioInfos exceeds MAX_AUDIOINFO it gets resized |
void |
decRecovery()
Sets the recovery. |
AudioInfo |
getAudioInfo()
returns the first AudioInfo in the list |
java.util.ListIterator |
getAudioInfoList()
returns the whole AudioInfo list |
int |
getDashCount()
gets the dash count of the player |
double |
getEffort()
gets the effort it takes the player to act |
int |
getKickCount()
gets the kick count of the player |
int |
getOppGoal()
gets number of goals of the opp team |
int |
getOurGoal()
gets number of goals of our team |
int |
getPlayMode()
gets the play mode |
double |
getRecovery()
Returns the recovery. |
int |
getSayCount()
gets the say count of the player |
char |
getSide()
gets playing side of the team |
double |
getStamina()
gets the stamina of the player |
int |
getTurnCount()
gets the turn count of the player |
int |
getTurnNeckCount()
gets the turn-neck count of the player |
boolean |
getViewQual()
gets the view-qaulity of the player |
int |
getViewWidth()
gets the view-width of the player |
void |
resetRecovery()
Sets the recovery. |
void |
setDashCount(int dashCount)
sets the dash count of the player |
void |
setEffort(double effort)
sets the effort it takes the player to act |
void |
setKickCount(int kickCount)
sets the kick count of the player |
void |
setOppGoal(int oppGoal)
sets number of goals of the opp team |
void |
setOurGoal(int ourGoal)
sets number of goals of our team |
void |
setPlayMode(int playMode)
sets the play mode |
void |
setSayCount(int sayCount)
sets the say count of the player |
void |
setSide(char side)
sets playing side of the team |
void |
setStamina(double stamina)
sets the stamina of the player |
void |
setTurnCount(int turnCount)
sets the turn count of the player |
void |
setTurnNeckCount(int turnNeckCount)
sets the turn-neck count of the player |
void |
setViewQual(boolean viewQual)
sets the view-qaulity of the player |
void |
setViewWidth(int viewWidth)
sets the view-width of the player |
Methods inherited from class PlayerInfos |
getDirBody, getDirHead, getNumber, print, setDirBody, setDirHead, setNumber |
Methods inherited from class DynObject |
getDirChange, getDirVector, getFormerDirVector, getFormerPosition, getPosition, getSpeedChange, getTime, setPosition, setTime |
Methods inherited from class java.lang.Object |
|
Field Detail |
private double stamina
private double effort
private boolean viewQual
private int viewWidth
private int kickCount
private int dashCount
private int turnCount
private int sayCount
private int turnNeckCount
private char side
private int ourGoal
private int oppGoal
private int playMode
private double recovery
public AudioInfo audioInfo
private java.util.LinkedList audioInfos
private int audioInfoSize
Constructor Detail |
OwnPlayerInfos()
OwnPlayerInfos(int time, java.awt.geom.Point2D.Double position, java.awt.geom.Point2D.Double formerPosition, java.awt.geom.Point2D.Double dirVector, java.awt.geom.Point2D.Double formerDirVector, double speedChange, double dirChange, double dirBody, double dirHead, int number, double stamina, double effort, boolean viewQual, int viewWidth, int kickCount, int dashCount, int turnCount, int sayCount, int turnNeckCount, AudioInfo audioInfo, char side, int ourGoal, int oppGoal, int playMode, double recovery)
Method Detail |
public double getStamina()
public void setStamina(double stamina)
public double getEffort()
public void setEffort(double effort)
public boolean getViewQual()
public void setViewQual(boolean viewQual)
false=low,
- true=highpublic int getViewWidth()
public void setViewWidth(int viewWidth)
0=narrow,
- 1=normal, 2=widepublic int getKickCount()
public void setKickCount(int kickCount)
public int getDashCount()
public void setDashCount(int dashCount)
public int getTurnCount()
public void setTurnCount(int turnCount)
public int getSayCount()
public void setSayCount(int sayCount)
public int getTurnNeckCount()
public void setTurnNeckCount(int turnNeckCount)
public char getSide()
public void setSide(char side)
public int getOurGoal()
public void setOurGoal(int ourGoal)
public int getOppGoal()
public void setOppGoal(int oppGoal)
public int getPlayMode()
public void setPlayMode(int playMode)
public void addAudioInfo(AudioInfo audioInfo)
public AudioInfo getAudioInfo()
public java.util.ListIterator getAudioInfoList()
public double getRecovery()
public void decRecovery()
recovery
- The recovery to setpublic void resetRecovery()
recovery
- The recovery to set
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |