Skip to content

drawing on the map, for debug or other purposes #98

@eronoobos

Description

@eronoobos

In the spirit of extending the API, rather than bloating the BA/BAR config some more, I was thinking about how best to add the ability to show information on the map.

For the Spring Skirmish AI, is there any kind of interface already in place, similar to https://springrts.com/wiki/AI:Development:MonitorAndDebug ? If not, the only way I know of is, as the BA/BAR config has done, write information to files, which a widget then reads & interprets into visuals. The widget would have to be copied into place.

The Spring LuaAI implementation could send similar information directly to the same widget, which in its case could be a part of the ShardSpringLua package.

As for how the the functions would be accessed from within Shard Lua, should it be in map, or would this be a case for adding another object, draw, or similar?

Sketchily, the functions would be something like
DrawPoint(position, color, label)
DrawRectangle(position1, position2, color, filled, label)
DrawCircle(position, radius, color, filled, label

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions