Class: ActionManager

HungryGames~ ActionManager


new ActionManager()

Handles firing of actions from {@see HungryGames~ActionStore}.
Source:

Methods


<private, static> _endTrigger(hg, game, list, alive, dead, wounded)

Trigger all actions for the end of something.
Parameters:
Name Type Description
hg HungryGames HG context events are firing from.
game HungryGames~GuildGame Game context events are firing in.
list Array.<HungryGames~Action> List of events to fire all of.
alive Array.<HungryGames~MemberAction> List of events to fire for all living players.
dead Array.<HungryGames~MemberAction> List of events to fire for all dead players.
wounded Array.<HungryGames~MemberAction> List of events to fire for all wounded players.
Source:

<private, static> _triggerAll(hg, game, list)

Trigger all given actions.
Parameters:
Name Type Description
hg HungryGames HG context events are firing from.
game HungryGames~GuildGame Game context events are firing in.
list Array.<HungryGames~Action> List of events to fire all of.
Source:

<static> dayEnd(hg, game)

Call when a day has ended.
Parameters:
Name Type Description
hg HungryGames HG context events are firing from.
game HungryGames~GuildGame Game context events are firing in.
Source:

<static> dayStart(hg, game)

Call when a day is started.
Parameters:
Name Type Description
hg HungryGames HG context events are firing from.
game HungryGames~GuildGame Game context events are firing in.
Source:

<static> gameAbort(hg, game)

Call when game has been aborted.
Parameters:
Name Type Description
hg HungryGames HG context events are firing from.
game HungryGames~GuildGame Game context events are firing in.
Source:

<static> gameEnd(hg, game)

Call when game has ended.
Parameters:
Name Type Description
hg HungryGames HG context events are firing from.
game HungryGames~GuildGame Game context events are firing in.
Source:

<static> gameStart(hg, game)

Call when game is started.
Parameters:
Name Type Description
hg HungryGames HG context events are firing from.
game HungryGames~GuildGame Game context events are firing in.
Source:

<static> stepped(hg, game)

Call when day state is updated. This handles the start and end events as well as all players affected.
Parameters:
Name Type Description
hg HungryGames HG context events are firing from.
game HungryGames~GuildGame Game context events are firing in.
Source: