Die interne Repraesentation eines Spielers im Weltmodell
Ausgabe auf dem Terminal
Objekte anlegen und zerstören
Die interne Repraesentation eines Spielers im Weltmodell. Ein ModelledPlayer hat zusaetzlich zu den Eigenschaften eines ModelledObject noch eine Blickrichtung und eine Kraftreserve. Die Kraftreserve setzt sich aus den Werten stamina, effort und recovery zusammen. Dazu kommen entsprechende Verlässlichkeitsinformationen.Quelltext
[Header | [Implementierung]
CVS Informationen zum Interface
************************************************** * * Aktueller Stand * * $RCSfile: ModelledPlayer.h,v $ * $Revision: 1.43 $ * $Date: 1998/08/14 13:20:55 $ * $Author: myritz $ * **************************************************
ModelledPlayer( const MovingPlayer& aMovingPlayer, const Reliability& aPosReliability = Reliability(Reliability::RANDOM), const Reliability& aSpeedReliability = Reliability(Reliability::RANDOM), const Reliability& aFaceDirReliability = Reliability(Reliability::RANDOM), int aViewWidth = VIEW_WIDTH_WIDE, double stamina = UNDEF_DOUBLE, double effort = UNDEF_DOUBLE, double recovery = UNDEF_DOUBLE, const Reliability& aStaminaReliability = Reliability(Reliability::RANDOM) )
aPosReliability - Die Verlaesslichkeit der Position. Als Default wird
RANDOM angenommen.
aSpeedReliability - Die Verlaesslichkeit der Geschwindikeit. Als
Default wird RANDOM angenommen.
aFaceDirReliability - Die Verläßlichkeit der Blickrichtung. Als
Deafault wird RANDOM angenommen.
aViewWidth - Sichtbreite darf nur die Werte VIEW_WIDTH_NARROW,
VIEW_WIDTH_NORMAL oder VIEW_WIDTH_WIDE annehmen. Als Default wird
VIEW_WIDTH_WIDE angenommen.
stamina - die Kraftreserve des Spielers. Gueltige Werte: 0 bis
theStaminaMax. Kleinere Werte werden auf 0 gesetzt, groessere Werte
(UNDEF_DOUBLE) auf theStaminaMax.
effort - der Leistungsfaktor des Spielers. Gueltige Werte:
theEffortMin bis 1.0. Kleinere Werte werden auf theStaminaMin gesetzt,
groessere Werte (UNDEF_DOUBLE) auf 1.0.
recovery - der Erholungsfactor des Spielers. Gueltige Werte
theRecoveryMin bis 1.0. Kleinere Werte werden auf theRecoveryMin gesetzt,
groessere Werte (UNDEF_DOUBLE) auf 1.0.
aStaminaReliability - Die Verlässlichkeit der Stamina-Werte. Als
Default wird RANDOM angenommen. virtual StorableObject* copy()
double effort()
double recovery()
const Reliability& staminaReliability()
double faceDir()
const Reliability& faceDirReliability()
int viewWidth()
double visibleAngle()
int team()
bool isPlayerNumberKnown()
virtual String toString()
void setStamina( double newStamina )
void setEffort( double newEffortFactor )
void setRecovery( double newRecoveryFactor )
void setStaminaReliability( const Reliability& newStaminaReliability )
void setFaceDir( double newFaceDir )
void setFaceDirReliability( const Reliability& newFaceDirReliability )
void setViewWidth( int newViewWidth )
void setVisibleAngle( int viewWidth )
void recover( int simSteps = 1 )
void accelerate( double aPower )
void turn( double angle )
bool isInFieldOfView( const StableObject& pos )
bool isInFieldOfFeel( const StableObject& pos )
bool isInFieldOfSense( const StableObject& pos )
isInFieldOfFeel
double dashPowerForSend( double power )
double maxEffectiveDashPower()
double normalizeDashPower(double power)
double turnAngleForSend( double angle )
double maxEffectiveTurnAngle()
double normalizeTurnAngle(double angle)
int estimatedStepsToBall( ModelledBall ball )
int calculatedStepsToBall( ModelledBall& ball, int estimatedSteps )
estimatedSteps - Geschätzte Zahl der Schritte.
double maxSpeed()
double decay()
double staminaIncMax()
double staminaMax()
double recoverDecThr()
double recoverDec()
double recoverMin()
double effortDecThr()
double effortDec()
double effortIncThr()
double effortInc()
double effortMin()
double dashPowerRate()
double maxPower()
void setSize(double aPlayerSize)
void setMaxSpeed(double aPlayerMaxSpeed)
void setDecay(double aPlayerDecay)
void setStaminaIncMax(double aStaminaIncMax)
void setStaminaMax(double aStaminaMax)
void setRecoverDecThr(double aRecoverDecThr)
void setRecoverDec(double aRecoverDec)
void setRecoverMin(double aRecoverMin)
void setEffortDecThr(double aEffortDecThr)
void setEffortDec(double aEffortDec)
void setEffortIncThr(double aEffortIncThr)
void setEffortInc(double aEffortInc)
void setEffortMin(double aEffortMin)
void setDashPowerRate(double aDashPowerRate)
void setMaxPower(double aMaxPower)
void setMinPower(double aMinPower)
void setMaxMoment(double aMaxMoment)
void setMinMoment(double aMinMoment)
static double thePlayerSize
static double thePlayerMaxSpeed
static double thePlayerDecay
static double theStaminaIncMax
static double theStaminaMax
static double theRecoverDecThr
static double theRecoverDec
static double theRecoverMin
static double theEffortDecThr
static double theEffortDec
static double theEffortIncThr
static double theEffortInc
static double theEffortMin
static double theDashPowerRate
static double theMaxPower
static double theMinPower
static double theMaxMoment
static double theMinMoment
static double theNormVisibleAngle
static double theInertiaMomentOfTurn
static short isSetOnce
double theFaceDir
int theViewWidth
double theVisibleAngle
double theStamina
double theEffort
double theRecovery
Reliability theStaminaReliability
Reliability theFaceDirReliability
double turnAngleMult()
double normalizeStamina(double stamina)
double normalizeEffort(double effort)
double normalizeRecovery(double recovery)
Einleitung | Architektur | Dynamische Zusammenhänge | Referenzhandbuch | FAQ | Anhang A | Anhang B
generated by doc++