Class Index | File Index

Classes


Class CombatResultsTable


Defined in: combatResultsTable.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
CombatResultsTable
Field Summary
Field Attributes Field Name and Description
 
number of columns on the crt
 
combat odds table
 
number of possible combat results
 
array of combat results, e.g ['DE', 'DR', NR, 'AR', 'AE']
 
number of sides on die, usually 6
Method Summary
Method Attributes Method Name and Description
 
getCombatOddsList(combatOddsIndex)
getCombatOddsList
 
getCombatResults(die, combatOddsIndex)
getCombatResults
 
getCombatResultsTableHTML
 
getMaxCombatOddsIndex
 
CombatResultsTable.initialize
 
setCombatResults(die, combatOddsIndex, results)
setCombatResults - change results in crt table
 
setupCombatOddsTable - calculates percent of possible results for each odds column on crt
Class Detail
CombatResultsTable()
CombatResultsTable
this.combatResultsArray = ['DE', 'DR', NR, 'EX', 'AR'];
Field Detail
{number} combatOddsIndexCount
number of columns on the crt

{array} combatOddsTable
combat odds table

{number} combatResultCount
number of possible combat results

{array} combatResultsArray
array of combat results, e.g ['DE', 'DR', NR, 'AR', 'AE']

{number} dieSideCount
number of sides on die, usually 6
Method Detail
{list} getCombatOddsList(combatOddsIndex)
getCombatOddsList
Parameters:
{integer} combatOddsIndex
combat odds
Returns:
{list} list of percent of possible results for an odds column on crt

{integer} getCombatResults(die, combatOddsIndex)
getCombatResults
Parameters:
{integer} die
results of die roll
{integer} combatOddsIndex
combat odds
Returns:
{integer} combat results

{html} getCombatResultsTableHTML()
getCombatResultsTableHTML
Returns:
{html} crt table in HTML format

{integer} getMaxCombatOddsIndex()
getMaxCombatOddsIndex
Returns:
{integer}

initialize()
CombatResultsTable.initialize

setCombatResults(die, combatOddsIndex, results)
setCombatResults - change results in crt table
Parameters:
{integer} die
results of die roll
{integer} combatOddsIndex
combat odds
{integer} results
combat result

setupCombatOddsTable()
setupCombatOddsTable - calculates percent of possible results for each odds column on crt

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Oct 22 2018 09:33:50 GMT-0700 (PDT)