Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

AIWrapper:LegacyCpp: Difference between revisions

From Fightorder
intermisc/gamedev>Flozi
m 1cat (2cat)
 
m 1 revision imported
 
(No difference)

Latest revision as of 21:59, 23 February 2026

File:172px-Symbol comment vote.svg.png Warning! This page is outdated! The information displayed may no longer be valid, or has not been updated in a long time. Please refer to a different page for current information.


LegacyCpp
Developer
hoijui & zenzike
Version
0.1
Language Support
C++
Status
~stable
License
GNU GPL v2+
AI Interface
C
<- Back to AI Interfaces

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