soccerclient.brain
Class Striker

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--soccerclient.brain.Player
              |
              +--soccerclient.brain.FieldPlayer
                    |
                    +--soccerclient.brain.Striker
All Implemented Interfaces:
java.lang.Runnable

public class Striker
extends FieldPlayer

Überschrift: Striker Copyright: Copyright (c) 2002

Author:
Christian Pantke

Fields inherited from class soccerclient.brain.Player
action, com, field, log, manager, nr, out, pi, playmode, serverName, serverPort, standardPos, startPos, state, teamName, viewmode
 
Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
 
Constructor Summary
Striker(java.lang.String serverName, int serverPort, java.lang.String teamName)
           
 
Method Summary
 void playing()
          Here is defined how the player reacts in a running game.
(package private)  void resetPos(double speed)
          This method based on the method in the Player class.
(package private)  void resetPos(double speed, double dist)
          This method based on the method in the Player class.
(package private)  void resetPos(double speed, double dist, boolean stateCheck)
          This method based on the method in the Player class.
 
Methods inherited from class soccerclient.brain.FieldPlayer
cornerKick, freeKick, kickIn, kickOff, powerGoalKick, run, staminaRecovery, tripple
 
Methods inherited from class soccerclient.brain.Player
checkIn, directGoalKick, directKick, exactGoalKick, exactKick, getBall, getBallDir, getBallDist, getDirDist, getDist, getFarestFriend, getFutureBall, getNearestEnemy, getNearestFriend, getNormedDirection, goToBall, goToFastBall, goToFastBall, goToPosition, goToPosition, goToPosition, initPos, isBallTimeCurrent, log, lookForBall, pass, resetViewMode, stopBall, turnBodyToObject
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Striker

public Striker(java.lang.String serverName,
               int serverPort,
               java.lang.String teamName)
Method Detail

playing

public void playing()
Here is defined how the player reacts in a running game. Especially it takes care that the striker doesn't grope in the offside trap; that he reset his position when needed; run to the Ball when it is in his area of respects and shot when he can.
Overrides:
playing in class FieldPlayer

resetPos

void resetPos(double speed,
              double dist,
              boolean stateCheck)
        throws StateException
This method based on the method in the Player class. It looks if the striker is in an offside possition and let him go out of it. If he isn't in an offside position it let him go to his standard Position, with a given speed and tollerance he sould go to. It throws an exception if the state changes while the player is running.
Overrides:
resetPos in class Player

resetPos

void resetPos(double speed,
              double dist)
This method based on the method in the Player class. It looks if the striker is in an offside possition and let him go out of it. If he isn't in an offside position it let him go to his standard Position, with a given speed and tollerance he sould go to.
Overrides:
resetPos in class Player

resetPos

void resetPos(double speed)
This method based on the method in the Player class. It looks if the striker is in an offside possition and let him go out of it. If he isn't in an offside position it let him go to his standard Position with a given speed. The Player must go to this position exactly (the tollerance of the distance to this point the player could have to is only 0.4
Overrides:
resetPos in class Player
Following copied from class: soccerclient.brain.Player
Parameters:
speed - a int specifying the speed of the player