\b;Instruction \c;buildingenabled\n;
The instruction \c;buildingenabled();\n; lets you know if a building of a given \l;category\u cbot\category; can be built during current mission.

\b;Utilisation courante
Elle est similaire à l'instruction \c;\l;canbuild();\u cbot\canbuild;\n;. À noter cependant, elle ne vérifie pas si l'éventuelle recherche requise a été effectuée.
\c;
\s; \l;if\u cbot\if; (buildingenabled(\l;BotFactory\u object\factory;))
\s; {
\s; 	build(\l;BotFactory\u object\factory;);
\s; }
\n;
\b;Pour spécialistes
Syntaxe:
\s;\c;buildingenabled ( 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
\c;\l;build\u cbot\build;\n;, \c;\l;canbuild\u cbot\canbuild;\n;.
\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.
