This is a documentation for Board Game Arena: play board games online !
All public logs
Jump to navigation
Jump to search
Combined display of all available logs of Board Game Arena. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 12:57, 16 September 2025 Thoun talk contribs created page State classes: State directory (Created page with "{{Studio_Framework_Navigation}} State classes allow to create a PHP class for each game state. It allows to split the code in multiple files, without using Traits. The advantage is that the IDE understands the structure and can provide auto-completion and error highlights, that are lost in Traits. The State class in <code>modules/php/States/PlayerTurn.php</code> will have this structure: <pre> namespace Bga\Games\<MyGameName>\States; use Bga\GameFramework\StateType; u...")