#include <simulator.h>
Definition at line 30 of file simulator.h.
Public Member Functions | |
State (const std::string &id, DateTime st, double speed, double tangle, double size, const struct Position &pos) | |
const std::string & | ComponentID () const |
const DateTime & | Stamp () const |
virtual State * | Clone () |
virtual | ~State () |
double | Speed () |
double | Speed (const DateTime &at) |
double | Radius () |
double | Radius (const DateTime &at) |
struct Position | Position () |
struct Position | Position (const DateTime &at) |
double | Size () |
double | Size (const DateTime &at) |
IObject & | Serialize (std::ostream &output) |
IObject & | Deserialize (std::istream &input) |
Protected Member Functions | |
virtual void | ImplSerialize (std::ostream &) |
virtual void | ImplDeserialize (std::istream &) |
virtual void | StateSerialize (std::ostream &) |
virtual void | StateDeserialize (std::istream &) |
double | ImplSpeed (const DateTime &) |
double | ImplRadius (const DateTime &) |
void | SetSpeed (double) |
void | SetRadius (double) |
virtual struct Position | ImplPosition (const DateTime &)=0 |
struct Position | ImplPosition (const DateTime &) |
virtual double | ImplSize (const DateTime &)=0 |
double | ImplSize (const DateTime &) |
void | SetPosition (double x, double y, double angle) |
void | SetPosition (const struct Point &point, double angle) |
void | SetPosition (const struct Position &position) |
void | SetSize (double size) |
Private Attributes | |
Members * | pimpl |
State | ( | const std::string & | id, | |
DateTime | st, | |||
double | speed, | |||
double | tangle, | |||
double | size, | |||
const struct Position & | pos | |||
) |
virtual ~State | ( | ) | [virtual] |
const std::string& ComponentID | ( | ) | const |
Component name
const DateTime& Stamp | ( | ) | const |
Time when state was save
virtual State* Clone | ( | ) | [virtual] |
virtual void ImplSerialize | ( | std::ostream & | ) | [protected, virtual] |
Reimplemented from BaseMovingObject.
virtual void ImplDeserialize | ( | std::istream & | ) | [protected, virtual] |
Reimplemented from BaseMovingObject.
virtual void StateSerialize | ( | std::ostream & | ) | [protected, virtual] |
virtual void StateDeserialize | ( | std::istream & | ) | [protected, virtual] |
double ImplSpeed | ( | const DateTime & | ) | [protected, virtual, inherited] |
Implements IMovingObject.
double ImplRadius | ( | const DateTime & | ) | [protected, virtual, inherited] |
Implements IMovingObject.
void SetSpeed | ( | double | ) | [protected, inherited] |
void SetRadius | ( | double | ) | [protected, inherited] |
double Speed | ( | ) | [inline, inherited] |
Gets the object speed
Definition at line 101 of file physics.h.
References DateTime::Now().
Referenced by readCoreInfo().
double Radius | ( | ) | [inline, inherited] |
Gets the object turn angle
Definition at line 113 of file physics.h.
References DateTime::Now().
Referenced by readCoreInfo().
Gets the object center
Definition at line 40 of file physics.h.
References IObject::ImplPosition(), and DateTime::Now().
Referenced by Core::dispatch(), Arena::Private::drawCircle(), and readCoreInfo().
Definition at line 46 of file physics.h.
References IObject::ImplPosition().
double Size | ( | ) | [inline, inherited] |
Gets the object radius
Definition at line 52 of file physics.h.
References IObject::ImplSize(), and DateTime::Now().
Referenced by Arena::Private::drawCircle(), and Arena::Private::renderBot().
double Size | ( | const DateTime & | at | ) | [inline, inherited] |
Definition at line 58 of file physics.h.
References IObject::ImplSize().
IObject& Serialize | ( | std::ostream & | output | ) | [inline, inherited] |
Definition at line 63 of file physics.h.
References IObject::ImplSerialize().
Referenced by Core::Export().
IObject& Deserialize | ( | std::istream & | input | ) | [inline, inherited] |
Definition at line 68 of file physics.h.
References IObject::ImplDeserialize().
Referenced by Core::Import().
virtual struct Position ImplPosition | ( | const DateTime & | ) | [read, protected, pure virtual, inherited] |
Implemented in BaseObject, Compass, SoundSensor, and Trilobot.
Referenced by IObject::Position().
Implements IObject.
virtual double ImplSize | ( | const DateTime & | ) | [protected, pure virtual, inherited] |
Implemented in BaseObject, Compass, SoundSensor, and Trilobot.
Referenced by IObject::Size().
void SetPosition | ( | double | x, | |
double | y, | |||
double | angle | |||
) | [protected, inherited] |
void SetPosition | ( | const struct Point & | point, | |
double | angle | |||
) | [protected, inherited] |
void SetPosition | ( | const struct Position & | position | ) | [protected, inherited] |
void SetSize | ( | double | size | ) | [protected, inherited] |
Members* pimpl [private] |