示例#1
0
        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));
        }
示例#2
0
        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);
        }
示例#3
0
 public void SetCoin(EColorType color, int line, int col)
 {
     this.board[line, col] = (int)color;
 }
示例#4
0
 public int TranslateColor(int idx_koloru_prof, EColorType typ)
 {
     throw new NotImplementedException();
 }
示例#5
0
 public static string GetColorStr(EColorType type, string str)
 {
     return(GetColorStr((int)type, str));
 }
示例#6
0
 /// <summary>
 /// 获取颜色
 /// </summary>
 public static Color GetColor(EColorType type)
 {
     return(GetColor((int)type));
 }