示例#1
0
 public CardDef(CardAtlas atlas, CardStock stock, string text, string symbol, int pattern)
 {
     Atlas   = atlas;
     Stock   = stock;
     Text    = text;
     Symbol  = symbol;
     Pattern = pattern;
 }
 public CardDef(CardDef def)
 {
     Atlas   = def.Atlas;
     Stock   = def.Stock;
     Text    = def.Text;
     Symbol  = def.Symbol;
     Pattern = def.Pattern;
     Grade   = def.Grade;
 }
示例#3
0
 static string Verify(CardAtlas atlas, string text, string property, string msg)
 {
     if (string.IsNullOrEmpty(text))
     {
         return(string.Format("Set the {0} property {1}.", property, msg));
     }
     if (atlas == null || atlas.FindById(text) == null)
     {
         return(string.Format("{0} shape name '{1}' is not defined in the Atlas.", property, text));
     }
     return(null);
 }
示例#4
0
    //我们自己开发的时候都使用这个卡牌定义
    //游戏牌初始化定义

    public CardDef(CardAtlas atlas, CardStock stock, string image, string cardname, int dianshu, string huase, string classification, string function)
    {
        Atlas          = atlas;
        Stock          = stock;
        Image          = image;
        CardName       = cardname;
        Dianshu        = dianshu;
        Huase          = huase;
        Classification = classification;
        Function       = function;
        //直接默认用full image
        FullImage = true;
    }
示例#5
0
 public CardDef(CardAtlas atlas, CardStock stock, string image, string cardname, string country, int xueliang, string sex, string jineng1, string jineng2, string jineng3, string jineng4)
 {
     Atlas    = atlas;
     Stock    = stock;
     Image    = image;
     CardName = cardname;
     Country  = country;
     Xueliang = xueliang;
     Sex      = sex;
     Jineng_1 = jineng1;
     Jineng_2 = jineng2;
     Jineng_3 = jineng3;
     Jineng_4 = jineng4;
     //直接默认用full image
     FullImage = true;
 }