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 hgHungryGames HG context events are firing from. gameHungryGames~GuildGame Game context events are firing in. listArray.<HungryGames~Action> List of events to fire all of. aliveArray.<HungryGames~MemberAction> List of events to fire for all living players. deadArray.<HungryGames~MemberAction> List of events to fire for all dead players. woundedArray.<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 hgHungryGames HG context events are firing from. gameHungryGames~GuildGame Game context events are firing in. listArray.<HungryGames~Action> List of events to fire all of. - Source:
-
<static> dayEnd(hg, game)
-
Call when a day has ended.
Parameters:
Name Type Description hgHungryGames HG context events are firing from. gameHungryGames~GuildGame Game context events are firing in. - Source:
-
<static> dayStart(hg, game)
-
Call when a day is started.
Parameters:
Name Type Description hgHungryGames HG context events are firing from. gameHungryGames~GuildGame Game context events are firing in. - Source:
-
<static> gameAbort(hg, game)
-
Call when game has been aborted.
Parameters:
Name Type Description hgHungryGames HG context events are firing from. gameHungryGames~GuildGame Game context events are firing in. - Source:
-
<static> gameEnd(hg, game)
-
Call when game has ended.
Parameters:
Name Type Description hgHungryGames HG context events are firing from. gameHungryGames~GuildGame Game context events are firing in. - Source:
-
<static> gameStart(hg, game)
-
Call when game is started.
Parameters:
Name Type Description hgHungryGames HG context events are firing from. gameHungryGames~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 hgHungryGames HG context events are firing from. gameHungryGames~GuildGame Game context events are firing in. - Source: