class GameboardFactory (Niantic.ARDK.Extensions.Gameboard.GameboardFactory)
Overview
Class used to create Gameboard instances and passes instance to subscribers of GameboardInitialized. If a Gameboard was created and still alive, a second one can not be created. More...
class GameboardFactory { public: // properties ArdkEventHandler<GameboardCreatedArgs> GameboardInitialized; // methods static IGameboard Create(ModelSettings settings, bool visualise); };
Detailed Documentation
Class used to create Gameboard instances and passes instance to subscribers of GameboardInitialized. If a Gameboard was created and still alive, a second one can not be created.
Properties
ArdkEventHandler<GameboardCreatedArgs> GameboardInitialized
Event invoked when a new Gameboard is created and initialized.
Methods
static IGameboard Create(ModelSettings settings, bool visualise)
Create a Gameboard and notify subscribers of GameboardInitialized about it.
Parameters:
settings |
Settings for the created Gameboard instance. @params visualise If the Gameboard visualisation is activated at start time. |
Returns:
The created Gameboard, or throws a Gameboard instance is still active.