AIWrapper%3ALegacyCpp - beyond-all-reason/springrts_engine_wiki_mirror GitHub Wiki

Legacy/Old C++ AI Interface Wrapper

Forum threads

Description

This AI interface wrapper is written in C++. It allows spring to load AIs written for the old C++ AI interface of spring, and should not be used for new projects.

Used By

Skirmish AIs

Download

Binary

It comes with a spring default install.

Source

The source can be found under: {spring_source}/AI/Wrappers/LegacyCpp/

Bugs

Known crashes:

  • None

Please report bugs under Mantis to the AI subproject.

How to compile

It is compiled directly into AIs using it. Refer to springs Scons or CMake build files.

How to study body of API function

Open AI\Wrappers\LegacyCpp\AIAICallback.cpp, search for desired function, detect appropriate Clb_* function. Then open rts\ExternalAI\SSkirmishAICallbackImpl.cpp and find goal function body. Also you may try to read additional info in rts\ExternalAI\Interface\SSkirmishAICallback.h file for Clb_* function.

' <- Back to AI page'

Category: AIWrapper