public GameEntity CreateBullet(ECampType campType, int bulletType, EColorType colorType = EColorType.Unknow) { int bulletCode = 100 * bulletType + (int)colorType; string code = EntityUtil.GetBulletCode(bulletCode); return(CreateBullet(campType, code)); }
private int GetCoinScore(EColorType eColorType) { int score = 0; for (int i = 0; i < board.GetLength(0); i++) { for (int j = 0; j < board.GetLength(1); j++) { if (this.board[i, j] == (int)eColorType) { score++; } } } return(score); }
public void SetCoin(EColorType color, int line, int col) { this.board[line, col] = (int)color; }
public int TranslateColor(int idx_koloru_prof, EColorType typ) { throw new NotImplementedException(); }
public static string GetColorStr(EColorType type, string str) { return(GetColorStr((int)type, str)); }
/// <summary> /// 获取颜色 /// </summary> public static Color GetColor(EColorType type) { return(GetColor((int)type)); }