Minigames

From PSwiki
Revision as of 21:55, 21 December 2022 by Talad (talk | contribs) (Created page with "All minigames use GameboardsTable to define the basics of the game. Minigamemanager is called by the client to initiate a game with the following server-side methods MiniGameManager::HandleStartGameRequest() psMiniGameSession::AddPlayer() psMiniGameSession::SendInitialMGSetup() GetPSController()->ReceiveMGInitialBoardSetup() Then the client receives the request in PlayerController and displays the minigame window, and differs by game ty...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

All minigames use GameboardsTable to define the basics of the game.

Minigamemanager is called by the client to initiate a game with the following server-side methods

 MiniGameManager::HandleStartGameRequest()
      psMiniGameSession::AddPlayer()
        psMiniGameSession::SendInitialMGSetup()
          GetPSController()->ReceiveMGInitialBoardSetup()

Then the client receives the request in PlayerController and displays the minigame window, and differs by game type (see below)

Available minigame types

Dice cup game

Has GameboardsTable.gameType = "dicecup"

Board game

Has GameboardsTable.gameType = "gameboard"

Client side we call

UpsGameBoard::HandleMessage()
   UpsGameBoard::UpdateBoard()
      UpsGameBoard::SetupBoard()