intention queue
More...
#include <soccer_intention.h>
|
|
typedef std::shared_ptr< SoccerIntention > | Ptr |
| | smart pointer type.
|
| |
|
| SoccerIntention ()=default |
| | constructor is used only from derived class.
|
| |
◆ execute()
| bool rcsc::SoccerIntentionQueue::execute |
( |
PlayerAgent * |
agent | ) |
|
|
inlinevirtual |
◆ finished()
| bool rcsc::SoccerIntentionQueue::finished |
( |
const PlayerAgent * |
agent | ) |
|
|
inlinevirtual |
check if this intention queue is finished or not
- Returns
- true if intention is finished
Implements rcsc::SoccerIntention.
◆ pop()
| bool rcsc::SoccerIntentionQueue::pop |
( |
PlayerAgent * |
agent | ) |
|
|
inline |
execute queued intention.
- Parameters
-
| agent | agent object pointer |
- Return values
-
| true | if action is executed |
| false | if queue is empty, or action is failed. |
◆ push()
| void rcsc::SoccerIntentionQueue::push |
( |
Ptr |
intention | ) |
|
|
inline |
push new intention
- Parameters
-
| intention | dynamic allocated intention pointer |
The documentation for this class was generated from the following file: