CombatResolution.html
16oct09 CmdrZin
 

Combat Resolution

This will be the CombatResolution class. It will be a static class the provide all of the calculations needed to resolve
combat. The ManagedReferences for the two MudCharacters fighting will be passed in. Everything else will come
from their stats, skills, and inventory lists. The DataBase class will provide the details of things on the list.
Only one turn of combat is performed and the Health stat is adjusted.
Testing Health will be done by the calling method as well as looting and experience awards.
 

CombatResolution.java

Static class.

boolean CombatResolution.resolve(ManagedReference A, ManagedReference B)
Return true if either dies, else return false.

int totalAttackMods(ManagedReference who)
int totalDefenseMods(ManagedReference who)