Class: Day

HungryGames~ Day


new Day( [num] [, events])

Information about a single game day that was simulated.
Parameters:
Name Type Argument Description
num number <optional>
The day number.
events Array.<HungryGames~FinalEvent> <optional>
The events that will take place during this day.
Source:

Members


events :Array.<HungryGames~FinalEvent>

All events to take place during this day.
Type:
Source:

num :number

The day number this is. (Bloodbath is 0).
Type:
  • number
Source:

state :number

The state index of this day. 0 is not yet simulated, 1 is currently simulating, and 2-n are the index of the event to show if reduced by 2. (2 = event #0, 3 = event #1).
Type:
  • number
Source:

Methods


<static> from(data)

Create a Day from an Object. Similar to copy-constructor.
Parameters:
Name Type Description
data object Day like Object.
Source:
Returns:
Created Day.
Type
HungryGames~Day