It would be nice to have the option of damage to a unit
knocking out its weapons, reducing its speed, etc.
This damage information might be useful to a really
fancy client-side graphics system (so you can *see*
your tank's tracks get blown off, or whatever).
It might be quite easy to implement for weapons - just make
them (sub-)game pieces. They would then be handled by pretty
much the exact same system that handles everything else.
(We'd just have to remember that killing a unit kills its
weapons, and that killing a weapon gets that unit to stop
using it [which could be done from Unit.observeDeaths].)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=79324
It might be quite easy to implement for weapons - just make
them (sub-)game pieces. They would then be handled by pretty
much the exact same system that handles everything else.
(We'd just have to remember that killing a unit kills its
weapons, and that killing a weapon gets that unit to stop
using it [which could be done from Unit.observeDeaths].)