#include <Objects.h>
Inheritance diagram for DynamicObject:
Public Methods | |
DynamicObject () | |
bool | setRelativeDistanceChange (double d, Time time) |
double | getRelativeDistanceChange () const |
bool | setRelativeAngleChange (double d, Time time) |
double | getRelativeAngleChange () const |
bool | setTimeChangeInformation (Time time) |
Time | getTimeChangeInformation () const |
bool | setGlobalVelocity (VecPosition v, Time time) |
VecPosition | getGlobalVelocity () const |
double | getSpeed () const |
bool | setTimeGlobalVelocity (Time time) |
Time | getTimeGlobalVelocity () const |
Protected Attributes | |
VecPosition | vecGlobalVelocity |
Time | timeGlobalVelocity |
double | dRelativeDistanceChange |
double | dRelativeAngleChange |
Time | timeChangeInformation |
Definition at line 139 of file Objects.h.
|
This is the constructor for DynamicObject. A DynamicObject is created with all the variables initialized by (illegal) default values Definition at line 309 of file Objects.C. References dRelativeAngleChange, dRelativeDistanceChange, and UnknownDoubleValue. |
|
This method returns the global velocity of this object. The time of this information is related to the time returned by getTimeGlobalVelocity().
Definition at line 333 of file Objects.C. References vecGlobalVelocity. Referenced by WorldModel::getAgentGlobalVelocity(), WorldModel::getBallDirection(), WorldModel::getBallSpeed(), and WorldModel::getGlobalVelocity(). |
|
This method returns the relative angle change of this object. This information belongs to the server time that is returned by getTimeChangeInformation().
Definition at line 403 of file Objects.C. References dRelativeAngleChange. Referenced by WorldModel::calculateVelocityDynamicObject(), WorldModel::checkParticlesBall(), and WorldModel::initParticlesBall(). |
|
This method returns the relative distance change of this object. Note that this value is zero when object is at the same distance, but at a complete different angle. This occurs when an object has moved a lot in one cycle. This information belongs to the server time that is returned by getTimeChangeInformation().
Definition at line 382 of file Objects.C. References dRelativeDistanceChange. Referenced by WorldModel::calculateVelocityDynamicObject(), WorldModel::checkParticlesBall(), and WorldModel::initParticlesBall(). |
|
This method returns the speed of this object. The speed is the magnitude of the global velocity of the object
Definition at line 341 of file Objects.C. References VecPosition::getMagnitude(), and vecGlobalVelocity. Referenced by WorldModel::getAgentSpeed(). |
|
This method returns the server time that belongs to the relative distance and relative angle change of this object.
Definition at line 420 of file Objects.C. Referenced by WorldModel::calculateStateBall(), WorldModel::calculateStateBall2(), WorldModel::calculateStatePlayer(), WorldModel::checkParticlesBall(), and WorldModel::initParticlesBall(). |
|
This method returns the time that belongs to the global velocity of this object.
Definition at line 359 of file Objects.C. References timeGlobalVelocity. Referenced by WorldModel::getTimeGlobalVelocity(). |
|
This method sets the global velocity of this object and the time of this information
Definition at line 320 of file Objects.C. References EPSILON, VecPosition::getMagnitude(), setTimeGlobalVelocity(), VecPosition::setVecPosition(), and vecGlobalVelocity. Referenced by WorldModel::processCatchedBall(), WorldModel::processPerfectHearInfo(), WorldModel::processPerfectHearInfoBall(), WorldModel::processSeeGlobalInfo(), WorldModel::updateAgentAndBallAfterSense(), WorldModel::updateAgentObjectAfterSee(), WorldModel::updateBallAfterKick(), WorldModel::updateBallForCollision(), WorldModel::updateDynamicObjectAfterSee(), and WorldModel::updateDynamicObjectForNextCycle(). |
|
This method sets the relative angle change and the server time this information belongs to.
Definition at line 392 of file Objects.C. References dRelativeAngleChange, and setTimeChangeInformation(). Referenced by WorldModel::processNewObjectInfo(). |
|
This method sets the relative distance change and the time this information was calculated.
Definition at line 369 of file Objects.C. References dRelativeDistanceChange, and setTimeChangeInformation(). Referenced by WorldModel::processNewObjectInfo(). |
|
This method sets the time the change information was calculated.
Definition at line 411 of file Objects.C. References timeChangeInformation. Referenced by setRelativeAngleChange(), and setRelativeDistanceChange(). |
|
This method sets the time that corresponds to the last update of the global velocity of this object.
Definition at line 350 of file Objects.C. References timeGlobalVelocity. Referenced by setGlobalVelocity(). |
|
Relative angle change Definition at line 149 of file Objects.h. Referenced by DynamicObject(), getRelativeAngleChange(), setRelativeAngleChange(), and BallObject::show(). |
|
Relative distance change Definition at line 148 of file Objects.h. Referenced by DynamicObject(), getRelativeDistanceChange(), setRelativeDistanceChange(), and BallObject::show(). |
|
Time of change information Definition at line 150 of file Objects.h. Referenced by setTimeChangeInformation(). |
|
Time of the corresponding velocity Definition at line 145 of file Objects.h. Referenced by getTimeGlobalVelocity(), setTimeGlobalVelocity(), AgentObject::show(), BallObject::show(), and PlayerObject::show(). |
|
Global velocity of the player Definition at line 144 of file Objects.h. Referenced by getGlobalVelocity(), getSpeed(), setGlobalVelocity(), AgentObject::show(), BallObject::show(), and PlayerObject::show(). |