|
|||||||
PREV NEXT | FRAMES NO FRAMES |
angle
to the player who perceived it.
atGamePos
method is used to cause the player to go back
to the middle of his radius whenever the ball is not within reach
atPoint
method is used to recognize wheter a position
has been reached or not
atPoint = false ---> position is not reached (default)
atPoint = true ---> position is reached
ballCanBeSeen
method test if ball can be seen
ballInRadius
method test if ball is within the player´s action-radius
ballKickAble
method test if ball is perfect to kick
Brain
class is used to compute and steer the actual
player. Brain
instance.
buildMessage
method builds message containing positions
to cry out to all the world message contains information in this order:
password myNr time0 x0 y0 time1 x1 y1 ... time22 x22 y22
all information is stored as integer
calcAngle2Obj
method calculates angle to turn to face direction to an object.
calcDashPower
method calculates power to dash using the distance to the coordinates to dash to
Author: Ramin Radpour
calcDistr
method calculates the distance between two objects
Author: Ramin Radpour
calcKickPower
method calculates power to kick the ball refering to distance of object to pass to.
calcObjectDir
method calculates actual moving direction of an object by giving the angle to absangle back.
oldX, oldY are old and actX, actY actual positions of the object;
timedif is the diference between the timecycle of oldX/Y and actX/Y.
calcOwnPos
method calculates ownPosition and uses getNextFlag and getLineAngle
fills positions[myNr][0,1,5,6]
Author: Ramin Radpour
calcPositions
method calculates absolute positions of seen objects.
uses methods calcOwnPos() and rel2abs()
Author: Ramin Radpour
catchBall
method is the main routine of goalieCommunication
class takes care of the server-client
UDP-Packet-transmission. Communication
instance; handles
transfer errors.distance
to the player who perceived it.
enemyInFront
method test if one enemy in front of me
flagPosition
method gives absolute flagposition back
freeKick
method is Goalie free kick after catching the ball
Author: Anita Reifsteck
friendHot
method calculates possible teammembers to pass to
gamePos
method defines the action-area.
getBall
method makes the particular Player run to the ball.
getLineAngle
method gives seen line with see-angle back
getNextFlag
method takes the nearest flag of all seen ones
goalie
is true if the player is a goalie.
ballKickAble
method test if own position is perfekt to kick to goal
gotoPoint
method moves player to given coordinates
Author: Ramin Radpour
gotoPos
method moves Player to his Game Position
Author: Thorsten Fiekert
GUI
object, which is the visualisation of the worldmodel
GUI
class is used to visualize the worldmodel of one
special player. JTextArea
.
JButton
"Beenden" is being capsuled here.hearEvent
method uses heared messages from teammembers to complete own positions
Author: Ramin Radpour
init
method initializates players and gets information
from server about playdirection, own Number and playmode
Author: Patrick Ficher
initPos
method initial positions of all players at start
of game or after goal
Author: Thorsten Fiekert
initStartPos
method setting up start positions before
kickoff or after goal
Author: Ramin Radpour
inMyOwnRadius
method test if player is in his action-radius
This method is used to make sure that the player won´t leave his action-radius
JPanel
"Beenden" is determined.
Parser
class is used to divide the input-stream from
the communication-module into tokens. Parser
instance.
play
method is the main method
Author: Ramin Radpour,
Author: Patrick Ficher
Player
array with length 11
Player
instance.
PlayerAction
implements the basic abilities a player can
perform. playHard
method have many decisions, so it can really be called brainReceive
-method fetches data from the server and passes
it on to the Worldmodel
.refereeMsg
method receive and set referee messages
Author: Thorsten Fiekert
rel2abs
method calculates absolute values with by
server passed information.
java RoboClient [TEAMNAME [SERVERNAME [SERVERPORT]]] [-gui]
run
method differes between hear, see and body events
Author: Ramin Radpour
Author: Patrick Ficher
Send
-method converts any incoming input-string into a
byte-array and sends it to the server.Spielfeld
class paints the playing field and the players who
are seen of the selected player. teamName
the perceived Player belongs to.
Timecyclus
the object was perceived in.
public
methods only return the value of above's
attributes.
tokenizeBodyevent
method takes
only care of incoming body_sense messages (see Users Manual 4.2.2).
tokenizeHearevent
method takes
only care of incoming hear messages (see Users Manual 4.2.2).
tokenizeVisualevent
method takes
only care of incoming see messages.
uniformNr
the perceived Player has.
whoIsNearest2Ball
method finds out, which player from each team stands nearest to ball
[0]: own player nearest to ball [1]: enemy nearest to ball
[2]: distance ownPlayer to ball [3]: distance enemy to ball
Author: Ramin Radpour
Worldmodel
class is used to calculate absolute positions of
seen objects with their given relative data. Worldmodel
instance.
|
|||||||
PREV NEXT | FRAMES NO FRAMES |