HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Damage Detection Question

12-09-2008, 01:46 PM#1
hitokirixeno
I'm writing a simple damage detection system for a map I'm making and am looking to optimize it a bit. Basically I'm wondering how I could reduce unnecessary iterations on attack, the current way I'm doing it was just a placeholder to get the system up and running, which it does.

What I was thinking of doing was attaching a linked list of abilities that the unit currently has and only iterate through those each attack and would probably drastically increase performance. I think that this might over complicate things for such a simple damage detection system and I was wondering what other possibilities there are out there that would help solve this problem.

Here's what is being used currently (not exact, don't have my map on this hd)
Expand JASS:
12-09-2008, 02:20 PM#2
Anitarf
Can't really comment on it without seeing the whole code. I guess you're trying to make something like ADamage?
12-09-2008, 05:05 PM#3
hitokirixeno
Hmm, odd I didn't see that in the Resources when I was looking before I started this, I've only skimmed over it a bit but yeah something like that although not nearly as complex. It looks like you used linked lists, do you attach them to units and retrieve them when that unit is involved in the damage event, and how did it work out? Anyways, I need to run I'm already late as it is, QQ.

Expand JASS: