Skip to content

Commit

Permalink
deploy: fe78b7c
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdd committed Jan 9, 2024
1 parent d36172c commit 7e82658
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,17 @@
<li>Utility AI</li>
<li>Goal Oriented Action Planning</li>
</ul>
<p>Why this project? Well, I wrote about it <a href="https://david-delassus.medium.com/ai-toolkit-give-a-brain-to-your-npcs-a-header-only-c-library-02a50ae9faed?sk=011cd1ed8e61d22f1be6b6430847f430">here</a>.</p>
<h1><a class="anchor" id="autotoc_md11"></a>
Installation</h1>
<p>Add the <code>include</code> folder of this repository to your include paths.</p>
<p>Or add it as a submodule:</p>
<div class="fragment"><div class="line">$ git submodule add https://github.com/linkdd/aitoolkit.git</div>
<div class="line">$ g++ -std=c++23 -Iaiotoolkit/include main.cpp -o mygame</div>
</div><!-- fragment --><h1><a class="anchor" id="autotoc_md12"></a>
</div><!-- fragment --><blockquote class="doxtable">
<p>&zwj;<b>NB:</b> This library is compatible with C++20. </p>
</blockquote>
<h1><a class="anchor" id="autotoc_md12"></a>
Usage</h1>
<h2><a class="anchor" id="autotoc_md13"></a>
Finite State Machine</h2>
Expand Down Expand Up @@ -331,7 +335,7 @@ <h2><a class="anchor" id="autotoc_md15"></a>
<div class="line"> </div>
<div class="line"><span class="keyword">auto</span> <a class="code hl_class" href="classaitoolkit_1_1goap_1_1plan.html">blackboard</a> = <a class="code hl_class" href="classaitoolkit_1_1goap_1_1plan.html">initial</a>;</div>
<div class="line"><span class="keywordflow">while</span> (<a class="code hl_class" href="classaitoolkit_1_1goap_1_1plan.html">p</a>) {</div>
<div class="line"> <a class="code hl_class" href="classaitoolkit_1_1goap_1_1plan.html">p</a>.<a class="code hl_function" href="classaitoolkit_1_1goap_1_1plan.html#a290d73dd20bfce9f42920cf3f5d8d1bd">run_next</a>(<a class="code hl_class" href="classaitoolkit_1_1goap_1_1plan.html">initial</a>); <span class="comment">// will mutate the blackboard</span></div>
<div class="line"> <a class="code hl_class" href="classaitoolkit_1_1goap_1_1plan.html">p</a>.<a class="code hl_function" href="classaitoolkit_1_1goap_1_1plan.html#a290d73dd20bfce9f42920cf3f5d8d1bd">run_next</a>(<a class="code hl_class" href="classaitoolkit_1_1goap_1_1plan.html">blackboard</a>); <span class="comment">// will mutate the blackboard</span></div>
<div class="line">}</div>
<div class="ttc" id="aclassaitoolkit_1_1goap_1_1plan_html_a290d73dd20bfce9f42920cf3f5d8d1bd"><div class="ttname"><a href="classaitoolkit_1_1goap_1_1plan.html#a290d73dd20bfce9f42920cf3f5d8d1bd">aitoolkit::goap::plan::run_next</a></div><div class="ttdeci">void run_next(T &amp;blackboard)</div><div class="ttdoc">Execute the next planned action.</div><div class="ttdef"><b>Definition</b> goap.hpp:248</div></div>
</div><!-- fragment --><p>For more informations, consult the <a href="https://linkdd.github.io/aitoolkit/group__goap.html">documentation</a>.</p>
Expand Down

0 comments on commit 7e82658

Please sign in to comment.