AIWrapper:LegacyCpp: Difference between revisions

From Spring
Jump to navigationJump to search
Hoijui (talk | contribs)
No edit summary
Flozi (talk | contribs)
m 1cat (2cat)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{deprecated}}
{{AIWrapper|LegacyCpp|hoijui & zenzike|0.1|C++|~stable|GNU GPL v2+|[[AIInterface:C|C]]}}
{{AIWrapper|LegacyCpp|hoijui & zenzike|0.1|C++|~stable|GNU GPL v2+|[[AIInterface:C|C]]}}


=== Forum threads ===
== Legacy/Old C++ AI Interface Wrapper ==
 
==== Forum threads ====
*[http://spring.clan-sy.com/phpbb/viewtopic.php?f=15&t=15019 AI Interface redesign (in C)]
*[http://spring.clan-sy.com/phpbb/viewtopic.php?f=15&t=15019 AI Interface redesign (in C)]


=== Description ===
==== 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.
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.


=== Currently supported AIs ===
=== Used By ===
==== Skirmish AIs ====
* '''[[AI:AAI|AAI]]'''
* '''[[AI:AAI|AAI]]'''
* '''[[AI:RAI|RAI]]'''
* '''[http://springrts.com/phpbb/viewtopic.php?f=15&t=19450 E323AI]'''
* '''[[AI:KAIK|KAIK]]'''
* '''[[AI:KAIK|KAIK]]'''
* '''[[AI:NTAI|NTai]]'''
* '''[[AI:NTAI|NTai]]'''
* '''[[AI:NullLegacyCppAI|NullLegacyCppAI]]'''
* '''[[AI:NullLegacyCppAI|NullLegacyCppAI]]'''
* '''[[AI:RAI|RAI]]'''


=== Download ===
=== Download ===
==== Binary ====
It comes with a spring default install.
It comes with a spring default install.


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


=== Known Crashes ===
=== Bugs ===
Known crashes:
* None
* None
Please report bugs under [http://springrts.com/mantis/ Mantis] to the AI subproject.


=== How to compile ===
=== How to compile ===
It is compiled directly into AIs using it. Refer to springs Scons or CMake build files.
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.


''' [[AIs|<- Back to AI page]]'''
''' [[AIs|<- Back to AI page]]'''


[[Category: AI]]
[[Category: AIWrapper]]
[[Category: AIWrapper]]
[[Category: Development]]

Latest revision as of 18:55, 20 March 2013

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