2025-08-25 16:19 CEST

spring: develop 425d22ad Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
kloot kloot develop 2010-04-06 14:36:06 develop 9f45193e
Changeset * AI: add some callbacks for visual debugging

    virtual int IsDebugDrawerEnabled() const = 0;
    virtual void AddDebugGraphPoint(int, float, float) = 0;
    virtual void DelDebugGraphPoints(int, int) = 0;
    virtual void SetDebugGraphPos(float, float) = 0;
    virtual void SetDebugGraphSize(float, float) = 0;
    virtual void SetDebugGraphLineColor(int, const float3&) = 0;

  these allow AI's to plot real-time performance graphs, which
  can be inspected (when spectating) by entering /team <aiteam>
  and the new command /debugdrawai in succession
mod - AI/Wrappers/LegacyCpp/AIAICallback.cpp Diff ] File ]
mod - AI/Wrappers/LegacyCpp/AIAICallback.h Diff ] File ]
mod - rts/ExternalAI/AICallback.cpp Diff ] File ]
mod - rts/ExternalAI/AICallback.h Diff ] File ]
mod - rts/ExternalAI/IAICallback.h Diff ] File ]
mod - rts/ExternalAI/Interface/AISCommands.h Diff ] File ]
mod - rts/ExternalAI/SSkirmishAICallbackImpl.cpp Diff ] File ]
mod - rts/Game/Game.cpp Diff ] File ]
add - rts/Rendering/DebugDrawerAI.cpp Diff ] File ]
add - rts/Rendering/DebugDrawerAI.h Diff ] File ]
mod - rts/Rendering/GL/myGL.h Diff ] File ]