HeteroPlayerSettings Class Reference

#include <ServerSettings.h>


Public Member Functions

void show (ostream &os=cout)

Data Fields

double dPlayerSpeedMax
double dStaminaIncMax
double dPlayerDecay
double dInertiaMoment
double dDashPowerRate
double dPlayerSize
double dKickableMargin
double dKickRand
double dExtraStamina
double dEffortMax
double dEffortMin
double dMaximalKickDist


Detailed Description

This class contains all the SoccerServer parameters which together define a heterogeneous player type. For each player type these parameters are initialized when the server is started.

Definition at line 679 of file ServerSettings.h.


Member Function Documentation

void HeteroPlayerSettings::show ( ostream &  os = cout  ) 

This method prints all the values of this heterogeneous player type to the supplied output.

Parameters:
os output stream to which values are printed.

Definition at line 2682 of file ServerSettings.cpp.

References dDashPowerRate, dEffortMax, dEffortMin, dExtraStamina, dInertiaMoment, dKickableMargin, dKickRand, dPlayerDecay, dPlayerSize, dPlayerSpeedMax, and dStaminaIncMax.


Field Documentation

double HeteroPlayerSettings::dPlayerSpeedMax

player_speed_max: maximum speed of a player

Definition at line 683 of file ServerSettings.h.

Referenced by WorldModel::getEffectiveMaxSpeed(), WorldModel::getPlayerSpeedMax(), WorldModel::processNewHeteroPlayer(), and show().

double HeteroPlayerSettings::dStaminaIncMax

stamina_inc_max: maximum stamina increase of a player per cycle

Definition at line 684 of file ServerSettings.h.

Referenced by WorldModel::getStaminaIncMax(), WorldModel::processNewHeteroPlayer(), and show().

double HeteroPlayerSettings::dPlayerDecay

player_decay: player speed decay per cycle

Definition at line 686 of file ServerSettings.h.

Referenced by WorldModel::getEffectiveMaxSpeed(), WorldModel::getPlayerDecay(), WorldModel::processNewHeteroPlayer(), and show().

double HeteroPlayerSettings::dInertiaMoment

inertia_moment: inertia moment of a player; affects actual turn angle depending on speed

Definition at line 687 of file ServerSettings.h.

Referenced by WorldModel::getInertiaMoment(), WorldModel::processNewHeteroPlayer(), and show().

double HeteroPlayerSettings::dDashPowerRate

dash_power_rate: rate by which the 'Power' argument in a 'dash' command is multiplied (thus determining the amount of displacement of the player as a result of the 'dash')

Definition at line 689 of file ServerSettings.h.

Referenced by WorldModel::getDashPowerRate(), WorldModel::getEffectiveMaxSpeed(), WorldModel::processNewHeteroPlayer(), and show().

double HeteroPlayerSettings::dPlayerSize

dash_power_rate: rate by which the 'Power' argument in a 'dash' command is multiplied (thus determining the amount of displacement of the player as a result of the 'dash')

Definition at line 693 of file ServerSettings.h.

Referenced by WorldModel::getPlayerSize(), WorldModel::processNewHeteroPlayer(), and show().

double HeteroPlayerSettings::dKickableMargin

kickable_margin: margin around player in which ball is kickable; kickable area thus equals kickable_margin + ball_size + player_size

Definition at line 697 of file ServerSettings.h.

Referenced by WorldModel::processNewHeteroPlayer(), and show().

double HeteroPlayerSettings::dKickRand

kick_rand: random error in kick direction

Definition at line 700 of file ServerSettings.h.

Referenced by WorldModel::processNewHeteroPlayer(), and show().

double HeteroPlayerSettings::dExtraStamina

extra_stamina: extra stamina for heterogeneous player

Definition at line 701 of file ServerSettings.h.

Referenced by WorldModel::processNewHeteroPlayer(), and show().

double HeteroPlayerSettings::dEffortMax

effort_max: maximum value for player effort

Definition at line 703 of file ServerSettings.h.

Referenced by WorldModel::getEffectiveMaxSpeed(), WorldModel::getEffortMax(), WorldModel::processNewHeteroPlayer(), and show().

double HeteroPlayerSettings::dEffortMin

effort_min: minimum value for player effort

Definition at line 704 of file ServerSettings.h.

Referenced by WorldModel::processNewHeteroPlayer(), and show().

double HeteroPlayerSettings::dMaximalKickDist

the maximum distance from a player for which the ball is still kickable

Definition at line 706 of file ServerSettings.h.

Referenced by WorldModel::getMaximalKickDist(), and WorldModel::processNewHeteroPlayer().


The documentation for this class was generated from the following files:
Generated on Thu Apr 26 22:45:31 2007 for GangOfSix(GOS)-RoboCupTeamProject by  doxygen 1.5.1-p1