本文整理汇总了C#中GameType.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# GameType.ToString方法的具体用法?C# GameType.ToString怎么用?C# GameType.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GameType
的用法示例。
在下文中一共展示了GameType.ToString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetDisplayName
public static string GetDisplayName(GameType gameType)
{
switch (gameType)
{
case GameType.NoLimitHoldem:
return "No Limit Holdem";
case GameType.FixedLimitHoldem:
return "Fixed Limit Holdem";
case GameType.PotLimitOmaha:
return "Pot Limit Omaha";
case GameType.PotLimitOmahaHiLo:
return "Pot Limit Omaha Hi-Lo";
case GameType.FixedLimitOmahaHiLo:
return "Fixed Limit Omaha Hi-Lo";
case GameType.PotLimitHoldem:
return "Pot Limit Holdem";
case GameType.Any:
return "Any";
case GameType.CapNoLimitHoldem:
return "Cap NL Holdem";
case GameType.CapPotLimitOmaha:
return "Cap Pot Limit Omaha";
case GameType.Unknown:
return "Unknown";
default:
return gameType.ToString();
}
}
示例2: SetGameType
public static void SetGameType(GameType type)
{
try
{
if (rkOptions != null)
{
rkOptions.SetValue(gameTypeKeyName, type.ToString());
}
}
catch
{
}
}
示例3: GameIsSavedToMongoDatabaseWhenCreated
public void GameIsSavedToMongoDatabaseWhenCreated(string gameName, GameType gameType)
{
var page = SeleniumEnvironment.Instance.NavigateToInitialPage<CreateGamePage>(ApplicationUrls.CreateGame);
page.GameName = gameName;
page.Type = gameType;
page.CreateGame();
var gamesCollection = Mongo.GetCollection<BsonDocument>("Game");
WaitFor.Condition(() => gamesCollection.Count() > 0);
var savedDocument = gamesCollection.FindAll().Single();
Assert.Equal(gameName, savedDocument.GetElement("name").Value.AsString);
Assert.Equal(gameType.ToString(), savedDocument.GetElement("type").Value.AsString);
}
示例4: GetGameTypeHandHistoryText
public string GetGameTypeHandHistoryText(PokerFormat pokerFormat, SiteName siteName, GameType gameType)
{
return GetHandText(pokerFormat, siteName, "GameTypeTests", gameType.ToString());
}