Where do I get Droid damage from loop.cpp file
Posted: 06 Nov 2013, 03:57
I am working in the gameStateUpdate function within the loop.cpp file and I know that it iterates through the droid list at the for loop starting at line 612. I know the health stat is body, but I can't seem to find the variable for the damage that the droid does with each shot. Is it just poorly named or how would I go about retrieving the variable?
What would I do at the point I have marked to find each DROID's damage?
for (unsigned i = 0; i < MAX_PLAYERS; i++)
{
//update the current power available for a player
updatePlayerPower(i);
DROID *psNext;
for (DROID *psCurr = apsDroidLists; psCurr != NULL; psCurr = psNext)
{
// Copy the next pointer - not 100% sure if the droid could get destroyed but this covers us anyway
Working here ----> psCurr->(what?)
psNext = psCurr->psNext;
droidUpdate(psCurr);
}
What would I do at the point I have marked to find each DROID's damage?
for (unsigned i = 0; i < MAX_PLAYERS; i++)
{
//update the current power available for a player
updatePlayerPower(i);
DROID *psNext;
for (DROID *psCurr = apsDroidLists; psCurr != NULL; psCurr = psNext)
{
// Copy the next pointer - not 100% sure if the droid could get destroyed but this covers us anyway
Working here ----> psCurr->(what?)
psNext = psCurr->psNext;
droidUpdate(psCurr);
}