Add Fail task and missing icons

This commit is contained in:
Serhii Snitsaruk 2022-08-29 13:30:53 +02:00
parent 8b1431f712
commit 8bfd8e1bef
18 changed files with 41 additions and 0 deletions

7
limboai/bt/bt_fail.cpp Normal file
View File

@ -0,0 +1,7 @@
/* bt_fail.cpp */
#include "bt_fail.h"
int BTFail::_tick(float p_delta) {
return FAILURE;
}

16
limboai/bt/bt_fail.h Normal file
View File

@ -0,0 +1,16 @@
/* bt_fail.h */
#ifndef BT_FAIL_H
#define BT_FAIL_H
#include "bt_action.h"
#include "core/object.h"
class BTFail : public BTAction {
GDCLASS(BTFail, BTAction);
protected:
virtual int _tick(float p_delta);
};
#endif // BT_FAIL_H

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m14.21 3.21-1.42-1.42-4.79 4.8-4.79-4.8-1.42 1.42 4.8 4.79-4.8 4.79 1.42 1.42 4.79-4.8 4.79 4.8 1.42-1.42-4.8-4.79z" fill="#fc7f7f"/></svg>

After

Width:  |  Height:  |  Size: 208 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m6.2 14.77a1 1 0 0 1 -.82-.43l-4.21-6.14 1.65-1.13 3.36 4.93 7-10.74 1.68 1.09-7.86 11.97a1 1 0 0 1 -.83.45z" fill="#8eef97"/></svg>

After

Width:  |  Height:  |  Size: 201 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m12.63 5.19.74-.74-1.08-1.08-.78.77a5.81 5.81 0 0 0 -1.89-.91v-2.23h-3.24v2.23a6 6 0 1 0 6.25 2zm-4.63 8.51a4.69 4.69 0 0 1 -.65-9.33v4.63h1.3v-4.63a4.69 4.69 0 0 1 -.65 9.33z" fill="#c38ef1"/></svg>

After

Width:  |  Height:  |  Size: 268 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m12.63 5.19.74-.74-1.08-1.08-.78.77a5.81 5.81 0 0 0 -1.89-.91v-2.23h-3.24v2.23a6 6 0 1 0 6.25 2zm-4.63 8.51a4.69 4.69 0 0 1 -.65-9.33v4.63h1.3v-4.63a4.69 4.69 0 0 1 -.65 9.33z" fill="#c38ef1"/></svg>

After

Width:  |  Height:  |  Size: 268 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m14.21 3.21-1.42-1.42-4.79 4.8-4.79-4.8-1.42 1.42 4.8 4.79-4.8 4.79 1.42 1.42 4.79-4.8 4.79 4.8 1.42-1.42-4.8-4.79z" fill="#fc7f7f"/></svg>

After

Width:  |  Height:  |  Size: 208 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m15 8-7-7-6.29 6.3-.71.7 7 7zm-12.61 0h11.22l-5.61 5.6z" fill="#c38ef1"/></svg>

After

Width:  |  Height:  |  Size: 148 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m14.22 7h-.22a6 6 0 0 0 -12 0h-.22a.78.78 0 0 0 -.78.75v6.47a.78.78 0 0 0 .78.78h12.44a.78.78 0 0 0 .78-.78v-6.47a.78.78 0 0 0 -.78-.75zm-5.17 6.4h-2.05a.42.42 0 0 1 -.44-.5l.61-2.25a1.24 1.24 0 0 1 -.53-1 1.35 1.35 0 0 1 1.36-1.28 1.35 1.35 0 0 1 1.41 1.27 1.24 1.24 0 0 1 -.53 1l.61 2.25a.42.42 0 0 1 -.44.48zm-5.75-6.4a4.7 4.7 0 0 1 9.4 0z" fill="#c38ef1"/></svg>

After

Width:  |  Height:  |  Size: 435 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><g fill="#c38ef1"><path d="m7.82 4.9a2.91 2.91 0 1 0 -2.89 2.92 2.9 2.9 0 0 0 2.89-2.92zm-2.89 2.19a2.18 2.18 0 1 1 2.16-2.19 2.17 2.17 0 0 1 -2.16 2.19z"/><path d="m14 11.08a2.91 2.91 0 1 0 -2.89 2.92 2.9 2.9 0 0 0 2.89-2.92zm-2.89 2.19a2.18 2.18 0 1 1 2.16-2.19 2.17 2.17 0 0 1 -2.16 2.19z"/><path d="m.72 7.27h14.56v1.46h-14.56z" transform="matrix(.70710678 -.70710678 .70710678 .70710678 -3.31 8)"/></g></svg>

After

Width:  |  Height:  |  Size: 473 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><g fill="#c38ef1"><path d="m2.4 9a14.93 14.93 0 0 1 1.9-4l-1.3.57v-2a.82.82 0 0 1 .79-.83h8.49a.82.82 0 0 1 .79.83v2.43h1.14v-2.47a2 2 0 0 0 -1.93-2h-8.54a2 2 0 0 0 -1.93 2v2l-1.31-.53a14.93 14.93 0 0 1 1.9 4z"/><path d="m13.6 7a14.93 14.93 0 0 1 -1.9 4l1.3-.56v2a.82.82 0 0 1 -.79.83h-8.47a.82.82 0 0 1 -.74-.8v-2.47h-1.19v2.47a2 2 0 0 0 1.93 2h8.49a2 2 0 0 0 1.93-2v-2l1.34.53a14.93 14.93 0 0 1 -1.9-4z"/></g></svg>

After

Width:  |  Height:  |  Size: 477 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><g fill="#fc7f7f"><path d="m2.4 9a14.93 14.93 0 0 1 1.9-4l-1.3.57v-2a.82.82 0 0 1 .79-.83h8.49a.82.82 0 0 1 .79.83v2.43h1.14v-2.47a2 2 0 0 0 -1.93-2h-8.54a2 2 0 0 0 -1.93 2v2l-1.31-.53a14.93 14.93 0 0 1 1.9 4z"/><path d="m13.6 7a14.93 14.93 0 0 1 -1.9 4l1.3-.56v2a.82.82 0 0 1 -.79.83h-8.47a.82.82 0 0 1 -.74-.8v-2.47h-1.19v2.47a2 2 0 0 0 1.93 2h8.49a2 2 0 0 0 1.93-2v-2l1.34.53a14.93 14.93 0 0 1 -1.9-4z"/></g></svg>

After

Width:  |  Height:  |  Size: 477 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><g fill="#8eef97"><path d="m2.4 9a14.93 14.93 0 0 1 1.9-4l-1.3.57v-2a.82.82 0 0 1 .79-.83h8.49a.82.82 0 0 1 .79.83v2.43h1.14v-2.47a2 2 0 0 0 -1.93-2h-8.54a2 2 0 0 0 -1.93 2v2l-1.31-.53a14.93 14.93 0 0 1 1.9 4z"/><path d="m13.6 7a14.93 14.93 0 0 1 -1.9 4l1.3-.56v2a.82.82 0 0 1 -.79.83h-8.47a.82.82 0 0 1 -.74-.8v-2.47h-1.19v2.47a2 2 0 0 0 1.93 2h8.49a2 2 0 0 0 1.93-2v-2l1.34.53a14.93 14.93 0 0 1 -1.9-4z"/></g></svg>

After

Width:  |  Height:  |  Size: 477 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m14.22 7h-.22a6 6 0 0 0 -12 0h-.22a.78.78 0 0 0 -.78.75v6.47a.78.78 0 0 0 .78.78h12.44a.78.78 0 0 0 .78-.78v-6.47a.78.78 0 0 0 -.78-.75zm-5.17 6.4h-2.05a.42.42 0 0 1 -.44-.5l.61-2.25a1.24 1.24 0 0 1 -.53-1 1.35 1.35 0 0 1 1.36-1.28 1.35 1.35 0 0 1 1.41 1.27 1.24 1.24 0 0 1 -.53 1l.61 2.25a.42.42 0 0 1 -.44.48zm-5.75-6.4a4.7 4.7 0 0 1 9.4 0z" fill="#c38ef1"/></svg>

After

Width:  |  Height:  |  Size: 435 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m6.2 14.77a1 1 0 0 1 -.82-.43l-4.21-6.14 1.65-1.13 3.36 4.93 7-10.74 1.68 1.09-7.86 11.97a1 1 0 0 1 -.83.45z" fill="#8eef97"/></svg>

After

Width:  |  Height:  |  Size: 201 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m14.22 7h-.22a6 6 0 0 0 -12 0h-.22a.78.78 0 0 0 -.78.75v6.47a.78.78 0 0 0 .78.78h12.44a.78.78 0 0 0 .78-.78v-6.47a.78.78 0 0 0 -.78-.75zm-5.17 6.4h-2.05a.42.42 0 0 1 -.44-.5l.61-2.25a1.24 1.24 0 0 1 -.53-1 1.35 1.35 0 0 1 1.36-1.28 1.35 1.35 0 0 1 1.41 1.27 1.24 1.24 0 0 1 -.53 1l.61 2.25a.42.42 0 0 1 -.44.48zm-5.75-6.4a4.7 4.7 0 0 1 9.4 0z" fill="#c38ef1"/></svg>

After

Width:  |  Height:  |  Size: 435 B

View File

@ -0,0 +1 @@
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m12.63 5.19.74-.74-1.08-1.08-.78.77a5.81 5.81 0 0 0 -1.89-.91v-2.23h-3.24v2.23a6 6 0 1 0 6.25 2zm-4.63 8.51a4.69 4.69 0 0 1 -.65-9.33v4.63h1.3v-4.63a4.69 4.69 0 0 1 -.65 9.33z" fill="#e0e0e0"/></svg>

After

Width:  |  Height:  |  Size: 268 B

View File

@ -14,6 +14,7 @@
#include "bt/bt_delay.h" #include "bt/bt_delay.h"
#include "bt/bt_dynamic_selector.h" #include "bt/bt_dynamic_selector.h"
#include "bt/bt_dynamic_sequence.h" #include "bt/bt_dynamic_sequence.h"
#include "bt/bt_fail.h"
#include "bt/bt_invert.h" #include "bt/bt_invert.h"
#include "bt/bt_parallel.h" #include "bt/bt_parallel.h"
#include "bt/bt_probability.h" #include "bt/bt_probability.h"
@ -59,6 +60,8 @@ void register_limboai_types() {
ClassDB::register_class<BTCooldown>(); ClassDB::register_class<BTCooldown>();
ClassDB::register_class<BTProbability>(); ClassDB::register_class<BTProbability>();
ClassDB::register_class<BTFail>();
LimboStringNames::create(); LimboStringNames::create();
} }