In your unit class, I would probably have it send a message to your quest engine every time something dies that includes the type of the deceased unit. The quest engine could then iterate through the QuestKillUnits until it found a match for the type of unit and increment the count by one. Your QuestKillUnits class needs a variable to hold how many units have been killed. When that variable is updated, it can send a message to your screen showing something like, "killed 5/6 werewolves".
SutayhMember Since 01 Apr 2008
Offline Last Active Apr 28 2014 10:55 AM