stk-code_catmod/doc/robots.txt
hikerstk 8d2779495b (See r1587 on 0.4rc1):
1) empty robot templates have been moved from
   'tools' to src/robots (documentation was updated),
   and are now included in source distributions
   Removed tools directory which is now empty.
2) Include documentation in source distributions
   (but only player_manual will be installed)
3) Added missing bullet documentation files
   and removed unnecessary cmake files. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1588 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-25 02:22:04 +00:00

16 lines
803 B
Plaintext
Executable File

To create a robot, here is what you should do:
- There is a template for the robots in the src/robots directory, modify it
to create your own robot, the files are named empty_robot.cpp and
empty_robot.hpp .
- Name your source file <name of robot>_robot.cpp, and your header as
<name of robot>_robot.hpp .
- Place your source and header file in the src/robot/ directory.
- Add your filenames to the Makefile.am in the src/ directory.
- In the file src/world.cpp, under the group of #includes, add
#include "robots/<header file name>", then add your robot inside
function World::loadRobot to the switch statement as the next case
available, and increase the constant NUM_ROBOTS by one.
- To test it, run 'sh reconf.sh'. It should reconfigure your build and then
compile STK.