Class: SendVictorAction

HungryGames~Action~ SendVictorAction


new SendVictorAction()

Create an action that will send a message to the game channel saying who won the game.
Source:

Extends

  • HungryGames~Action~ChannelAction

Methods


<static> create()

Create action from save data.
Source:
Returns:
The created action.
Type
HungryGames~SendVictorAction

<private> _sendNoVictor(hg, game, channel)

Send the message that no one has won the games.
Parameters:
Name Type Description
hg HungryGames HungryGames context.
game HungryGames~GuildGame Game context.
channel external:Discord~TextChannel Channel to send the message.
Source:

<private> _sendSoloVictor(hg, game, channel, p, team)

Send the message that a player has won the games.
Parameters:
Name Type Argument Description
hg HungryGames HungryGames context.
game HungryGames~GuildGame Game context.
channel external:Discord~TextChannel Channel to send the message.
p HungryGames~Player The last player surviving.
team HungryGames~Team <nullable>
The last team surviving, if one.
Source:

<private> _sendTeamVictor(hg, game, channel, team)

Send the message that a team has won the games.
Parameters:
Name Type Description
hg HungryGames HungryGames context.
game HungryGames~GuildGame Game context.
channel external:Discord~TextChannel Channel to send the message.
team HungryGames~Team The last team surviving.
Source: