\b;Instruction \c;canbuild\n;
L'instruction \c;canbuild();\n; vous permet de savoir si les \l;préhenseurs\u object\botgc;, \l;vous\u object\human; ou les \l;techniciens\u object\human; pouvez construire un bâtiment d'une \l;catégorie\u cbot\category; donnée.

\b;Utilisation courante
Elle aide à éviter des erreurs lors de l'exécution des programmes lors de l'exécution de l'instruction \c;\l;build();\u cbot\build;\n;. En voici un exemple :
\c;
\s; \l;if\u cbot\if; (canbuild(\l;BotFactory\u object\factory;))
\s; {
\s; 	build(\l;BotFactory\u object\factory;);
\s; }
\n;
\b;Pour spécialistes
Syntaxe:
\s;\c;canbuild ( cat );\n;

\t;cat: \c;\l;int\u cbot\int;\n;
\l;Category\u cbot\category; of a building.

\t;Type du retour: \c;\l;booléen (bool)\u cbot\bool;\n;
\c;true\n; si le bâtiment peut être construit, \c;false\n; sinon.

\t;Voir aussi
\l;build\u cbot\build;, \l;buildingenabled\u cbot\buildingenabled;, \l;programmation\u cbot;, \l;types\u cbot\type; et \l;catégories\u cbot\category;.
