class GetIntoSpaceOption : public PassiveOption

Diese Klasse steht für den Wunsch sich freizulaufen

Inheritance:


Public Methods

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
GetIntoSpaceOption()
Erzeugt eine GetIntoSpaceOption
virtual String toString()
Beschreibung als String fuer die Ausgabe auf einem Terminal

Private Methods

int baseUtility()
Der Grundnutzen des Wunsches

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

virtual void adaptToPreviousIntention( const Option *previousIntention )
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 für den Wunsch sich freizulaufen. Dieser Wunsch bekommt eine hohe Aktivierung, wenn der Spieler den Ball nicht am schnellsten bzgl. seiner Teamkameraden erreichen kann, aber sich in unmittelbarer Nähe zu dem Spieler befindet, der den Ball am schnellsten erreichen kann. Bei Auswahl dieses Wunsches läuft sich der Spieler frei, so daß er gut von diesem Spieler angespielt werden kann.

Quelltext

[Header | [Implementierung]

CVS Informationen zum Interface

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

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.


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++