|
Status | Botcraft::Yield (BehaviourClient &client) |
| Just call client.Yield().
|
|
Status | Botcraft::Disconnect (BehaviourClient &client) |
| Ask this client to disconnect from the server by setting should_be_closed to true.
|
|
Status | Botcraft::Say (BehaviourClient &client, const std::string &msg) |
| Send a message in the game chat.
|
|
Status | Botcraft::SayBlackboard (BehaviourClient &client) |
| Same thing as Say, but reads its parameters from the blackboard.
|
|
Status | Botcraft::InteractWithBlock (BehaviourClient &client, const Position &pos, const PlayerDiggingFace face=PlayerDiggingFace::Up, const bool animation=true) |
| Interact (right click) with the block at the given location.
|
|
Status | Botcraft::InteractWithBlockBlackboard (BehaviourClient &client) |
| Same thing as InteractWithBlock, but reads its parameters from the blackboard.
|
|
Status | Botcraft::CheckBlackboardBoolData (BehaviourClient &client, const std::string &key) |
| Check in the blackboard if the bool at key is true.
|
|
Status | Botcraft::CheckBlackboardBoolDataBlackboard (BehaviourClient &client) |
| Same thing as CheckBlackboardBoolData, but reads its parameters from the blackboard.
|
|
template<typename T > |
Status | Botcraft::Internal::SetBlackboardDataImpl (BehaviourClient &client, const std::string &key, const T &data) |
|
template<typename T > |
Status | Botcraft::SetBlackboardData (BehaviourClient &client, const std::string &key, const T &data) |
| Set a value in the blackboard.
|
|
template<typename T > |
Status | Botcraft::SetBlackboardDataBlackboard (BehaviourClient &client) |
| Same thing as SetBlackboardData, but reads its parameters from the blackboard.
|
|
Status | Botcraft::RemoveBlackboardData (BehaviourClient &client, const std::string &key) |
| Remove a value from the blackboard if exist.
|
|
Status | Botcraft::RemoveBlackboardDataBlackboard (BehaviourClient &client) |
| Same thing as RemoveBlackboardData, but reads its parameters from the blackboard.
|
|
Status | Botcraft::IsHungry (BehaviourClient &client, const int threshold=20) |
| Return success if player food is below a threshold.
|
|
Status | Botcraft::IsHungryBlackboard (BehaviourClient &client) |
| Same thing as IsHungry, but reads its parameters from the blackboard.
|
|
Status | Botcraft::CopyBlackboardData (BehaviourClient &client, const std::string &src, const std::string &dst) |
| Copy a blackboard data.
|
|
Status | Botcraft::CopyBlackboardDataBlackboard (BehaviourClient &client) |
| Same thing as CopyBlackboardData, but reads its parameters from the blackboard.
|
|
Status | Botcraft::IsNightTime (BehaviourClient &client) |
| Return Success if it's night time (sleep is possible)
|
|
Status | Botcraft::IsAlive (BehaviourClient &client) |
| Return success if player is alive.
|
|