Classes | |
struct | Variables |
Public Member Functions | |
AsebaFeedableEPuck (int id) | |
AsebaFeedableEPuck (int id) | |
void | connectionClosed (Dashel::Stream *stream, bool abnormal) |
void | connectionCreated (Dashel::Stream *stream) |
void | controlStep (double dt) |
void | controlStep (double dt) |
void | incomingData (Dashel::Stream *stream) |
double | toDoubleClamp (sint16 val, double mul, double min, double max) |
double | toDoubleClamp (sint16 val, double mul, double min, double max) |
virtual | ~AsebaFeedableEPuck () |
virtual | ~AsebaFeedableEPuck () |
Public Attributes | |
std::valarray< unsigned short > | bytecode |
int | joystick |
std::valarray< uint8 > | lastMessageData |
uint16 | lastMessageSource |
int | port |
std::valarray< signed short > | stack |
Dashel::Stream * | stream |
struct Enki::AsebaFeedableEPuck::Variables | variables |
AsebaVMState | vm |
Definition at line 155 of file challenge.cpp.
Enki::AsebaFeedableEPuck::AsebaFeedableEPuck | ( | int | id | ) | [inline] |
Definition at line 196 of file challenge.cpp.
virtual Enki::AsebaFeedableEPuck::~AsebaFeedableEPuck | ( | ) | [inline, virtual] |
Definition at line 230 of file challenge.cpp.
Enki::AsebaFeedableEPuck::AsebaFeedableEPuck | ( | int | id | ) | [inline] |
Definition at line 221 of file playground.cpp.
virtual Enki::AsebaFeedableEPuck::~AsebaFeedableEPuck | ( | ) | [inline, virtual] |
Definition at line 242 of file playground.cpp.
void Enki::AsebaFeedableEPuck::connectionClosed | ( | Dashel::Stream * | , | |
bool | ||||
) | [inline, virtual] |
Called when target closes connection. The only valid method to call on the stream is getTargetName(), input/output operations are forbidden. You must not call closeStream(stream) from within this method for the same stream as the one passed as parameter. Subclass can implement this method. Called with the stream lock held.
stream | stream to the target. | |
abnormal | whether the connection was closed during step (abnormal == false) or when an operation was performed (abnormal == true) |
Reimplemented from Dashel::Hub.
Definition at line 265 of file challenge.cpp.
void Enki::AsebaFeedableEPuck::connectionCreated | ( | Dashel::Stream * | ) | [inline, virtual] |
Called when any data connection is created. It is not called when a listening connection (eg tcpin:) is created. If the stream is closed during this method, an exception occurs: the caller is responsible to handle it. The stream is already inserted in the stream list when this function is called. Subclass can implement this method. Called with the stream lock held.
stream | stream to the target |
Reimplemented from Dashel::Hub.
Definition at line 236 of file challenge.cpp.
void Enki::AsebaFeedableEPuck::controlStep | ( | double | dt | ) | [inline, virtual] |
Reimplemented from Enki::FeedableEPuck.
Definition at line 258 of file playground.cpp.
void Enki::AsebaFeedableEPuck::controlStep | ( | double | dt | ) | [inline, virtual] |
Reimplemented from Enki::FeedableEPuck.
Definition at line 289 of file challenge.cpp.
void Enki::AsebaFeedableEPuck::incomingData | ( | Dashel::Stream * | ) | [inline, virtual] |
Called when data is available for reading on the stream. If the stream is closed during this method, an exception occurs: Hub stops the execution of this method and calls connectionClosed(); objects dynamically allocated must thus be handled with auto_ptr. If step() is used, subclass must implement this method and call read at least once. Called with the stream lock held.
stream | stream to the target |
Reimplemented from Dashel::Hub.
Definition at line 251 of file challenge.cpp.
double Enki::AsebaFeedableEPuck::toDoubleClamp | ( | sint16 | val, | |
double | mul, | |||
double | min, | |||
double | max | |||
) | [inline] |
Definition at line 248 of file playground.cpp.
double Enki::AsebaFeedableEPuck::toDoubleClamp | ( | sint16 | val, | |
double | mul, | |||
double | min, | |||
double | max | |||
) | [inline] |
Definition at line 279 of file challenge.cpp.
std::valarray< unsigned short > Enki::AsebaFeedableEPuck::bytecode |
Definition at line 160 of file challenge.cpp.
Definition at line 198 of file playground.cpp.
std::valarray<uint8> Enki::AsebaFeedableEPuck::lastMessageData |
Definition at line 193 of file challenge.cpp.
Definition at line 192 of file challenge.cpp.
Definition at line 190 of file challenge.cpp.
std::valarray< signed short > Enki::AsebaFeedableEPuck::stack |
Definition at line 161 of file challenge.cpp.
Definition at line 158 of file challenge.cpp.
Definition at line 159 of file challenge.cpp.