AI:NullLegacyCppAI: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 4: | Line 4: | ||
This Skirmish AI is written in C++ and uses the legacy C++ wrapper over the C AI Interface to prove that this wrapper works, and for testing purposes. | This Skirmish AI is written in C++ and uses the legacy C++ wrapper over the C AI Interface to prove that this wrapper works, and for testing purposes. | ||
It is an empty implementation, meaning it will load, but do absolutely nothing. NullLegacyCppAI can be used to test the AI interface, or for exploring a map if one wants the end game screen not to | It is an empty implementation, meaning it will load, but do absolutely nothing. NullLegacyCppAI can be used to test the AI interface, or for exploring a map if one wants the end game screen not to appear. It can also be used as a template for C++ Skirmish AI projects that want to use the legacy C++ interface (not recommended, see [[AI:NullCppAI|Null C++ AI NOT YET AVAILABLE (using the new C++ interface)]] instead). | ||
This AI uses the [[AIInterface:C|C & C++ AI Interface Library]]. See also [[AI:NullAI|Null AI (pure C)]]. | This AI uses the [[AIInterface:C|C & C++ AI Interface Library]]. See also [[AI:NullAI|Null AI (pure C)]]. | ||
| Line 28: | Line 28: | ||
=== How to install === | === How to install === | ||
from | from: ''{spring_source}/AI/Skirmish/NullLegacyCppAI/''<br> | ||
* copy ''libNullLegacyCppAI.so'', ''libNullLegacyCppAI.dylib'' or ''NullLegacyCppAI.dll'' to '' | to: ''{spring_data_dir}/AI/Skirmish/data/NullLegacyCppAI-{NullLegacyCppAI-version}/'' | ||
* copy | * copy ''build/libNullLegacyCppAI.so'', ''build/libNullLegacyCppAI.dylib'' or ''build/NullLegacyCppAI.dll'' to ''/'' | ||
* copy ''data/*'' to ''/'' | |||
''' [[AIs|<- Back to AI page]]''' | ''' [[AIs|<- Back to AI page]]''' | ||
[[Category:AI]] | [[Category:AI]] | ||
Revision as of 23:13, 19 December 2008
| Developer | |
| Version | |
| Mod Support | |
| Status | |
| License | |
| Interface | |
| Wrapper | |
Description
This Skirmish AI is written in C++ and uses the legacy C++ wrapper over the C AI Interface to prove that this wrapper works, and for testing purposes.
It is an empty implementation, meaning it will load, but do absolutely nothing. NullLegacyCppAI can be used to test the AI interface, or for exploring a map if one wants the end game screen not to appear. It can also be used as a template for C++ Skirmish AI projects that want to use the legacy C++ interface (not recommended, see Null C++ AI NOT YET AVAILABLE (using the new C++ interface) instead).
This AI uses the C & C++ AI Interface Library. See also Null AI (pure C).
Download
It comes with spring (SVN version).
Known Crashes
- None
How to compile
- include directories:
- {spring_source}/rts/System
- {spring_source}/AI/Wrappers/LegacyCpp
- {spring_source}/AI/Skirmish/NullLegacyCppAI
- {spring_source}/rts/ExternalAI
- {spring_source}/rts/ExternalAI/Interface
- source files:
- {spring_source}/AI/Skirmish/NullLegacyCppAI/*.cpp
- {spring_source}/AI/Wrappers/LegacyCpp/*.cpp
- create dynamic loadable shared library (module)
- should compile with all C++ compilers, if it does not, please report it, or even better, send a fix
How to install
from: {spring_source}/AI/Skirmish/NullLegacyCppAI/
to: {spring_data_dir}/AI/Skirmish/data/NullLegacyCppAI-{NullLegacyCppAI-version}/
- copy build/libNullLegacyCppAI.so, build/libNullLegacyCppAI.dylib or build/NullLegacyCppAI.dll to /
- copy data/* to /