Trabalho Prático - PDS2
Carregando...
Procurando...
Nenhuma entrada encontrado
Referência da Classe ExecUtils

Membros públicos estáticos

static void PrintBanner ()
 Prints the banner with available commands for the system.
 
static void handleLoadPlayers (PlayerManager &pm)
 Handles the loading of players from the save file.
 
static void handleCreatePlayer (PlayerManager &pm)
 Handles the creation of a new player.
 
static void handleRemovePlayer (PlayerManager &pm)
 Handles the removal of a player from the PlayerManager.
 
static void handleListPlayers (PlayerManager &pm)
 Handles the listing of players based on user input.
 
static void handlePlayGame (PlayerManager &pm)
 Handles the process of playing a game between two players.
 

Documentação das funções

◆ handleCreatePlayer()

void handleCreatePlayer ( PlayerManager & pm)
static

Handles the creation of a new player.

Parâmetros
pmReference to the PlayerManager instance where the new player will be added.
Este é o diagrama das funções utilizadas por essa função:

◆ handleListPlayers()

void handleListPlayers ( PlayerManager & pm)
static

Handles the listing of players based on user input.

The user is prompted to enter:

  • 'A' for listing by nickname, followed by the player's nickname.
  • 'N' for listing by name, followed by the player's name.
  • 'C' for a complete list of players.
Parâmetros
pmReference to the PlayerManager object that manages player information.
Este é o diagrama das funções utilizadas por essa função:

◆ handleLoadPlayers()

void handleLoadPlayers ( PlayerManager & pm)
static

Handles the loading of players from the save file.

Parâmetros
pmReference to the PlayerManager instance where the players will be loaded.
Este é o diagrama das funções utilizadas por essa função:

◆ handlePlayGame()

void handlePlayGame ( PlayerManager & pm)
static

Handles the process of playing a game between two players.

Parâmetros
pmReference to the PlayerManager object that manages the players.
Exceções
InexistentPlayerExceptionif one of the players does not exist in the PlayerManager.
Este é o diagrama das funções utilizadas por essa função:

◆ handleRemovePlayer()

void handleRemovePlayer ( PlayerManager & pm)
static

Handles the removal of a player from the PlayerManager.

Parâmetros
pmReference to the PlayerManager instance.
Este é o diagrama das funções utilizadas por essa função:

A documentação para essa classe foi gerada a partir dos seguintes arquivos: