Exemplo n.º 1
0
 public ExportGameAttribute(string name, TableType table, BallSetType ballSet, int playersNum) : base(typeof(IGame))
 {
     Name       = name;
     Table      = table;
     BallSet    = ballSet;
     PlayersNum = playersNum;
 }
Exemplo n.º 2
0
        public static IBallSetInternal GetBallSet(ITable table, BallSetType type)
        {
            switch (type)
            {
            case BallSetType.Triangle:
                return(new TriangleBallSet(table as ITableInternal));

            default:
                return(null);
            }
        }
Exemplo n.º 3
0
        public static int GetMaxBallNum(BallSetType type)
        {
            switch (type)
            {
            case BallSetType.Triangle:
                return(TriangleBallSet.MaxBallNum);

            default:
                return(-1);
            }
        }