Shard icon indicating copy to clipboard operation
Shard copied to clipboard

Land Mobility Checks

Open tomjn opened this issue 12 years ago • 4 comments

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

tomjn avatar Aug 02 '13 10:08 tomjn

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.

pandaro avatar Apr 12 '16 08:04 pandaro

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

tomjn avatar Apr 12 '16 12:04 tomjn

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

eronoobos avatar Jun 24 '16 09:06 eronoobos

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

tomjn avatar Jun 29 '16 23:06 tomjn