eras44 / sparcraft

My own fork of SparCraft sources in Googlecode
0 stars 0 forks source link

Add splash/area damage #4

Open nbarriga opened 10 years ago

nbarriga commented 10 years ago

Some units (like the siege tank on siege mode) deal damage to all units in an area, instead of just the target unit. A similar case is the bouncing shot of the mutalisk.

This can probably be implemented entirely as an extra check in GameState::performUnitAction. Check classes WeaponType, DamageType, ExplosionType. We don't need to support all damage and explosion types exactly, just add the easier or most common.