|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AudioInfo
This class is used to represent all messages heared by one player. For every object the following information is stored:
Field Summary | |
private int |
direction
|
private boolean |
fromDirection
|
private boolean |
fromReferee
|
private boolean |
fromSelf
|
private java.lang.String |
message
|
private int |
time
|
Constructor Summary | |
(package private) |
AudioInfo(int time,
java.lang.String message,
boolean fromSelf,
boolean fromReferee,
boolean fromDirection,
int direction)
|
Method Summary | |
int |
getDirection()
gets the direction where the message came from |
boolean |
getFromDirection()
gets the info if the sender of the message was not identified |
boolean |
getFromReferee()
gets the info if the sender of the message was referee |
boolean |
getFromSelf()
gets the info if the sender of the message was self |
java.lang.String |
getMessage()
gets the message |
int |
getTime()
gets the time when the message was heared |
void |
print()
prints the audio information usefull for debugging |
void |
setDirection(int direction)
sets the direction where the message came from |
void |
setFromDirection(boolean fromDirection)
sets the sender of the message on direction |
void |
setFromReferee(boolean fromReferee)
sets the sender of the message on referee |
void |
setFromSelf(boolean fromSelf)
sets the sender of the message on self |
void |
setMessage(java.lang.String message)
sets the message |
void |
setTime(int time)
sets the time when the message was heared |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int time
private boolean fromSelf
private boolean fromReferee
private boolean fromDirection
private int direction
private java.lang.String message
Constructor Detail |
AudioInfo(int time, java.lang.String message, boolean fromSelf, boolean fromReferee, boolean fromDirection, int direction)
Method Detail |
public void setTime(int time)
public int getTime()
public void setFromSelf(boolean fromSelf)
public boolean getFromSelf()
public void setFromReferee(boolean fromReferee)
public boolean getFromReferee()
public void setFromDirection(boolean fromDirection)
public boolean getFromDirection()
public void setDirection(int direction)
public int getDirection()
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public void print()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |