Archived
1
0
Fork 0
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
wow-raid-bingo/app/Game/GameSession.php
2021-10-18 11:56:52 +02:00

69 lines
1 KiB
PHP

<?php
namespace App\Game;
use Illuminate\Support\Collection;
class GameSession
{
/**
* The Game Board
*/
protected GameBoard $board;
/**
* Game settings for this session.
*/
protected GameSettings $settings;
/**
*
*/
//protected $cards;
public function __construct(GameBoard $board, GameSettings $settings)
{
$this->board = $board;
$this->settings = $settings;
}
/**
*
*/
public function getBoard() : GameBoard
{
return $this->board;
}
/**
*
*/
public function getBoardState() : GameBoardState
{
return $this->getBoard()->getState();
}
/**
*
*/
public function getCards() : Collection
{
return $this->getBoard()->getCards();
}
/**
*
*/
public function getSettings() : GameSettings
{
return $this->settings;
}
/**
*
*/
public function setSettings(GameSettings $settings)
{
$this->settings = $settings;
}
}