wesnoth-wiki-changes
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-wiki-changes] WritingYourOwnAI


From: wiki
Subject: [Wesnoth-wiki-changes] WritingYourOwnAI
Date: Fri, 5 Nov 2004 16:58 +0100

UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041102 
Firefox/1.0RC1
IP: 168.209.98.67
URI: http://wesnoth.slack.it/?WritingYourOwnAI
 - - - - -
Index: WritingYourOwnAI
===================================================================
RCS file: /home/wesnoth/cvsroot/wikiroot/WritingYourOwnAI,v
retrieving revision 1.12
diff -u -r1.12 WritingYourOwnAI
--- WritingYourOwnAI    4 Nov 2004 09:50:38 -0000       1.12
+++ WritingYourOwnAI    5 Nov 2004 15:58:45 -0000
@@ -1,3 +1,5 @@
+||Writing your own AI||
+
 Wesnoth supports a pluggable AI system that allows programmers to write their 
own AIs in C++.
 
 To write an AI, you need to derive a class from ''ai_interface''
@@ -79,7 +81,7 @@
 When the user defines your side, if they put an [ai] tag inside it,
 everything inside the [ai] tag will be returned by ''team::ai_parameters()''.
 
----
+||Using your AI||
 
 Finally, when you have your AI ready to go,
 you can add it to the ''create_ai()'' function in ||ai.cpp||. Suppose you 
called
@@ -94,7 +96,7 @@
 
 and when that side is created, it'll use your AI!
 
----
+||An example||
 
 Let us conclude with a small sample AI, called ''sample_ai''.
 How should this AI behave?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]