calmackenzie / VG1819

Final Project for CS4830 2018 - 2019
0 stars 2 forks source link

Auto use ability #358

Closed SRJYC closed 5 years ago

SRJYC commented 5 years ago

If an ability description has "auto_cast" property, this ability will set as auto cast ability. At every turn start, the unit will use the ability automatically and immediately.

If an ability description has "auto_click" property, when send request to board manager, it will immediately return a list of targets as the unit's tile is clicked on.

Non "auto click" ability can be "auto click" ability, by calling Unit::useAbility(AbilityName, true).

Currently, no abilities are set to be auto using, since it's too quick. Player may not even notice the ability is used.

However, for some structures, auto cast and auto click is useful. (Not necessary)

This is just give an option.

calmackenzie commented 5 years ago

I dig it, it can speed up the game