class InterceptBallOption : public PassiveOption

Diese Klasse steht fuer den Wunsch den Ball abzufangen

Inheritance:


Public Methods

void adaptToPreviousIntention( const Option *previousIntention )
Anpassung an die bisherige Absicht
virtual StorableObject* copy()
Legt eine Kopie des Objekts auf dem Heap an und liefert einen Zeiger darauf zurueck
Plan generatePlan()
Erzeugt einen Plan zur Umsetzung der Absicht
InterceptBallOption()
Erzeugt eine InterceptBallOption
virtual String toString()
Beschreibung als String fuer die Ausgabe auf einem Terminal

Private Methods

int baseUtility()
Der Grundnutzen des Wunsches
Vector computeKickInTarget()
Berechnet Zwischenziele fuer Einwurf

Inherited from PassiveOption:

Public Methods

virtual int cancellationCost()
virtual bool forceContinuation()
virtual bool isPossible()

Public

Mögliche Gründe die einen Abbruch des laufenden Planes

const int CANCEL_REASON_REFEREE_DECISION
const int CANCEL_REASON_NEW_BALL_INFO
const int CANCEL_REASON_CONT_TIME_EXPIRED
const int CANCEL_REASON_PLAN_COMPLETED
const int ALL_CANCEL_REASONS

Protected Fields

static const int NO_CONTINUATION

Protected Methods

int cancelReasons()
Vector closestNonOffsideTarget( const Vector& aTarget )
virtual int constraintCost( const Constraint *constraint )
int forceContinuationTime()
bool isCancelReasonActive( int aReason )
bool isDangerousPos( const Vector& aPos )
bool isDefenseSituation()
bool isPlanCompleted()
Plan isSomethingToSay()
bool isTargetComputed()
Plan movementTo( const Vector& target, const double targetRadius = TRIANGULATION_ACCURACY, const double staminaLimit = 0, const int specialBehaviors = Skills::AVOID_OBSTACLES )
void noCancelByReasons( int reasons )
void setCancelReasons( int reasons = ALL_CANCEL_REASONS )
void setForceContinuationTime( int timeSteps )
void setIsPlanCompleted( bool isPlanCompleted = YES )
void setIsTargetComputed( bool isTargetComputed )
void setTarget( const Vector& aTarget )
const Vector& target()

Private Fields

mutable int theCancelReasons
mutable int theForceContinuationTime
mutable bool theIsPlanCompleted
mutable bool theIsTargetComputed
mutable Vector theTarget

Inherited from Option:

Public Methods

void setConstraints( const Array<Constraint *>& constraints )

Protected Fields

mutable Array <Constraint *> acceptedConstraints
Array <Constraint *> requestedConstraints

Protected Methods

int computeExpectedUtility()
bool isConstraintAccepted( int constraintId )
bool isOptionPossible()
void setIsOptionPossible( bool isOptionPossible )

Private Fields

mutable bool theIsOptionPossible

Inherited from Constraint:

Public Methods

int expectedUtility()
int id()

Protected Fields

mutable int simStepOfUtilityCalculation
mutable int theExpectedUtility
int theId

Inherited from StorableObject:

Public

Ausgabe auf dem Terminal

void printOn(ostream& = cout)
Ausgabe der Beschreibung auf einen Stream
virtual String toString()
Beschreibung als String fuer die Ausgabe auf einem Terminal

Objekte anlegen und zerstören

virtual StorableObject* copy()
Legt eine Kopie des Objekts auf dem Heap an und liefert einen Zeiger darauf zurück
virtual ~StorableObject()
Der virtuelle Destruktor

Documentation

Diese Klasse steht fuer den Wunsch den Ball abzufangen. Dieser Wunsch bekommt eine hohe Aktivierung, wenn der Spieler den Ball am schnellsten bzgl. seiner Teamkameraden erreichen kann, oder nur minimal langsamer ist als der schnellste Teamkamerad. Bei Auswahl dieses Wunsches wird ein Plan erzeugt um den Ball zu erreichen.

Quelltext

[Header | [Implementierung]

CVS Informationen zum Interface

  **************************************************
  *
  * Aktueller Stand
  *
  *   $RCSfile: InterceptBallOption.h,v $
  *   $Revision: 1.10 $
  *   $Date: 1998/08/14 13:20:43 $
  *   $Author: myritz $ 
  *
  **************************************************
  
InterceptBallOption()
Erzeugt eine InterceptBallOption

void adaptToPreviousIntention( const Option *previousIntention )
Anpassung an die bisherige Absicht

Plan generatePlan()
Erzeugt einen Plan zur Umsetzung der Absicht.

virtual String toString()
Beschreibung als String fuer die Ausgabe auf einem Terminal

virtual StorableObject* copy()
Legt eine Kopie des Objekts auf dem Heap an und liefert einen Zeiger darauf zurueck. Diese Methode muss fuer JEDE Unterklasse neu definiert werden.

int baseUtility()
Der Grundnutzen des Wunsches. Dieser Teil der Nutzenberechnung ist nur vom Weltmodell abhaengig.
Returns:
Ein Wert zwischen MAX_UTILITY und MIN_UTILITY.

Vector computeKickInTarget()
Berechnet Zwischenziele fuer Einwurf


This class has no child classes.

alphabetic index hierarchy of classes


Hauptseite

Einleitung | Architektur | Dynamische Zusammenhänge | Referenzhandbuch | FAQ | Anhang A | Anhang B

generated by doc++