-
Notifications
You must be signed in to change notification settings - Fork 560
Structure of the Hero Object
gjtrowbridge edited this page Oct 7, 2014
·
11 revisions
Here are the main important properties of the Hero object.
{
distanceFromTop: /* This hero's position on the board */
distanceFromLeft: /* This hero's position on the board */
type: 'Hero' /* This will always say 'Hero' */
team: /* The team number that this hero is on (either 0 or 1) */
// This is an object for silly (unnecessary)
// performance-related reasons
// It should probably just be an array
minesOwned: {},
mineCount: /* Number of mines owned by this hero */,
minesCaptured: /* Number of mines captured by this hero */,
health: /* 0-100 */,
dead: false,
diamondsEarned: /* Number of diamonds earned by this hero */
damageDone: /* Total damage inflicted by this hero */
heroesKilled: /* Total enemies killed by this hero */
lastActiveTurn: /* When did this hero last get to move? */
gravesRobbed: /* Number of times you got to someone's grave
first after they died...just a stat item */
healthRecoved: /* Health healed */
healthGiven: /* Health given to injured teammates */
name: /* The github handle of this user (yes, you can try to kill certain users...) */
}
And here's the...