tomjn / Shard

A reprogrammable AI framework for the Spring Engine
https://shard.tomjn.com
17 stars 13 forks source link

Land Mobility Checks #14

Open tomjn opened 11 years ago

tomjn commented 11 years ago

At the moment one cannot tell if a unit is a submarine, land unit, or a ship. Some checks should be exposed to the lua interface

pandaro commented 8 years ago

i don't know but: through the script inside BA/BAR called :"shard_help_unit_table" we have a mtype class, inside the unittable, that can be: air veh bot sub ship amp or hov.

tomjn commented 8 years ago

Indeed, but such a workaround shouldn't be necessary, I was thinking of a suite of checks for various mobility options, rather than something that returned an mtype, then that distinction is up to the AI logic rather than the API

eronoobos commented 8 years ago

What does the Spring C++ AI interface have access to? UnitDefs?

tomjn commented 8 years ago

Yes, there's more information in there than is provided via the Shard API ( so much work, not all of it immediatley useful ). Basically anything available in the engines internal unitdef representation