本文整理汇总了C#中BoardManager.ClearBoard方法的典型用法代码示例。如果您正苦于以下问题:C# BoardManager.ClearBoard方法的具体用法?C# BoardManager.ClearBoard怎么用?C# BoardManager.ClearBoard使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BoardManager
的用法示例。
在下文中一共展示了BoardManager.ClearBoard方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetupGame
/// <summary>
/// Sets up eithr a local game or online game
/// </summary>
/// <param name="onlinePlay"></param>
/// <returns></returns>
private IGame SetupGame(bool onlinePlay)
{
//setup board manager
_boardManager = new BoardManager(_dbDoc);
//clear the board
_boardManager.ClearBoard();
if (onlinePlay)
{
string currentUser = Environment.UserName;
RestfulCommunicator restfulCommunicator = new RestfulCommunicator();
OnlineServer server = new OnlineServer(restfulCommunicator);
return new OnlineGame(_uiDoc, _boardManager, _scoreKeeper, server, currentUser);
}
return new LocalGame(_uiDoc, _boardManager, _scoreKeeper);
}