- changed name of './php/SessionSingleton.php' to './php/ASessionSingleton.php' to better reflect that it is an abstract class
- created './php/encountermanager/EncounterManager.php'
- './php/encountermanager/EncounterManager.php' now extends './php/ASessionSingleton.php'
- created class './php/actor/Actor.php'
- created class './php/dice/TwentySideDie.php'
Merge remote-tracking branch 'upstream/master'
- added min/max values to './php/dice/TwentySideDie.php'
- added method TwentySideDie::roll(); returns random int between min/max value
- added method EncounterManager::add(Actor); adds an actor to the encounter
- added method EncounterManager::sort(); sorts the list of actors in descending order according to total initiative (dice roll + mod)
- added attributes to EncounterManager
- added method EncounterManager::step(); steps the encounter by one turn
- added method EncounterManager::remove(aId); removes actor from encounter via id
- added method EncounterManager::getJSON; builds a map of encounter data and converts it to JSON
- added comments to './php/encountermanager/EncounterManager.php'
- added attributes to './php/actor/Actor.php'
- added constructor to './php/actor/Actor.php'
- added getters to './php/actor/Actor.php'
- added Actor::__toString
- added Actor::compare(Actor, Actor); compares two actors' total rolls used with usort
Merge remote-tracking branch 'upstream/master'
- create script './php/ajax/StepEncounter.php'; used to step the encounter one turn
- renamed encountermanager folder to enc
- EncounterManager::step() now increments round count by one
- EncounterManager::getJSON() now prints the EncounterManager for testing purposes