Page 1 of 1

.isAA on droids - discrepancy between docs and code

Posted: 17 Feb 2012, 03:43
by aubergine
Hi,

In the JS API docs, the droid object docs say:
isAA
True if the droid has anti-air capabilities. (3.2+ only)
In the code, and as previously advertised, however the property is ".canHitAir" - is there a planned change that's not been put in the code, or are the docs wrong?

I prefer .canHitAir (it's more descriptive than .isAA) and would make scripts more transparent as to what they're doing.

Also, .canHitGround is missing from the docs.

Re: .isAA on droids - discrepancy between docs and code

Posted: 17 Feb 2012, 04:27
by aubergine
Other stuff is missing too: .health, .cost, etc.

Re: .isAA on droids - discrepancy between docs and code

Posted: 18 Feb 2012, 10:59
by Per
Fixed. (Should be .canHitGroun and .canHitAir)

Re: .isAA on droids - discrepancy between docs and code

Posted: 18 Feb 2012, 11:10
by Emdek
canHitGroun
I believe that missing d is only mistake in post?

Re: .isAA on droids - discrepancy between docs and code

Posted: 18 Feb 2012, 14:58
by NoQ
I hope so, cause it works with "d" (:

Re: .isAA on droids - discrepancy between docs and code

Posted: 18 Feb 2012, 16:59
by aubergine
Yes, I'm not sure using italics in javascript function names is the right direction to go. :lol2: