2025-09-08 18:00 CEST

spring: develop 632d0c64 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
hoijui hoijui develop 2011-08-15 11:30:06 develop db7ef190
Changeset AI: allow AI Interface plugins to provide info about available Skirmish AIs
This acts as an alternative to `AIInfo.lua` and `AIOptions.lua` files.
In addition to AIs specified in this way, which was the only way so far,
AI Interfaces can now request the engine to be queried for available AIs
at runtime (in the engine and unitsync).
pros:
* AIs could be modularized more
* AIs could be supplied in a language native way (eg. as OSGi bundle through Maven)
* AIs could be supplied and/or run by/on a remote machine
cons:
* bogus AI Interface plugins that request lookup could crash the engine/unitsync
* initial AI info loading may take longer

This is untested, as no AI Interface plugin supports this functionality yet.
mod - rts/ExternalAI/AIInterfaceLibrary.cpp Diff ] File ]
mod - rts/ExternalAI/AIInterfaceLibrary.h Diff ] File ]
mod - rts/ExternalAI/AIInterfaceLibraryInfo.cpp Diff ] File ]
mod - rts/ExternalAI/AIInterfaceLibraryInfo.h Diff ] File ]
mod - rts/ExternalAI/AILibraryManager.cpp Diff ] File ]
mod - rts/ExternalAI/AILibraryManager.h Diff ] File ]
mod - rts/ExternalAI/Interface/SAIInterfaceLibrary.h Diff ] File ]