UNITS
CLASSES, INTERFACES, OBJECTS
TYPES
VARIABLES
CONSTANTS
FUNCTIONS, PROCEDURES
IDENTIFIERS

Class TBasicPlayer

Unit

BasicPlayer

Declaration

type TBasicPlayer = class(TidUDPClient)

Fields

None.

Methods

Overview

constructor Create(team: string = BPLAYER_DEFAULT_PLAYERNAME; host: string = BPLAYER_DEFAULT_SERVER_HOST; port: integer = BPLAYER_DEFAULT_SERVER_PORT; version: double = BPLAYER_DEFAULT_SERVER_VERSION);
destructor Destroy; override;
procedure catchBall(direction: integer);
procedure changeView(width, quality: integer);
procedure dash(power: double);
function Dash2Distance(power: double): double;
function Distance2DashPower(distance: double): double;
function Distance2KickPower(distance: double): double;
procedure getScore(var teamscore: integer; var opponentscore: integer);
function GetVOList(kindSet: TKindSet; MinConfidence: double = 0.0; MaxConfidence: double = 1.0): TVOList;
procedure joinMatch;
procedure kick(power, direction: double);
function Kick2Distance(power: double): double;
procedure leaveMatch;
procedure mainLoop;
procedure move(x, y: double);
procedure moveRel(amount: double);
procedure requestSenseInfo;
procedure say(s: string);
function Send(s: string): boolean;
procedure showStatus(stream: TStream);
procedure showStringCommands(stream: TStream);
function tryStringCommand(command: string): integer;
procedure turn(angle: double);

Description

constructor Create(team: string = BPLAYER_DEFAULT_PLAYERNAME; host: string = BPLAYER_DEFAULT_SERVER_HOST; port: integer = BPLAYER_DEFAULT_SERVER_PORT; version: double = BPLAYER_DEFAULT_SERVER_VERSION);

 

destructor Destroy; override;

 

procedure catchBall(direction: integer);

 

procedure changeView(width, quality: integer);

 

procedure dash(power: double);

 

function Dash2Distance(power: double): double;

 

function Distance2DashPower(distance: double): double;

estimate distance for kick

function Distance2KickPower(distance: double): double;

estimate power for distance

procedure getScore(var teamscore: integer; var opponentscore: integer);

 

function GetVOList(kindSet: TKindSet; MinConfidence: double = 0.0; MaxConfidence: double = 1.0): TVOList;

estimate power for distance

procedure joinMatch;

 

procedure kick(power, direction: double);

 

function Kick2Distance(power: double): double;

estimate distance for dash

procedure leaveMatch;

 

procedure mainLoop;

 

procedure move(x, y: double);

 

procedure moveRel(amount: double);

 

procedure requestSenseInfo;

 

procedure say(s: string);

 

function Send(s: string): boolean;

 

procedure showStatus(stream: TStream);

 

procedure showStringCommands(stream: TStream);

 

function tryStringCommand(command: string): integer;

 

procedure turn(angle: double);

 

Properties

Overview

CurrentHearNr:
CurrentMessageNr:
CurrentSeeNr:
CurrentSenseNr:
CurrentTouchNr:
CurTime:
Direction:
gotNewVisualInformation:
halfViewAngle:
KeeperNr:
Log:
OnCoachMsg:
OnErrorMsg:
OnPlayerMsg:
OnProgress:
OnRelRefereeMsg:
OnSeeMsg:
OnSenseMsg:
OnUnknownMsg:
PlayMode:
PlayNumber:
Side:
TeamName:
UserData:
ViewAngle:
ViewQuality:
X:
Y:

Description

CurrentHearNr:

 

CurrentMessageNr:

 

CurrentSeeNr:

 

CurrentSenseNr:

 

CurrentTouchNr:

 

CurTime:

 

Direction:

 

gotNewVisualInformation:

Public declarations

halfViewAngle:

 

KeeperNr:

 

Log:

 

OnCoachMsg:

 

OnErrorMsg:

 

OnPlayerMsg:

 

OnProgress:

 

OnRelRefereeMsg:

 

OnSeeMsg:

 

OnSenseMsg:

 

OnUnknownMsg:

 

PlayMode:

 

PlayNumber:

 

Side:

 

TeamName:

 

UserData:

 

ViewAngle:

 

ViewQuality:

 

X:

 

Y:

 


Generated by pasdoc 0.6.20 on Mon 26 Nov 2001 14:30:53