Beispiel #1
0
    Card0000003(int _pack, int _num, int _address, int _owner,
                GameScript.Zone _zone, GameScript _gameScript)
        : base(_pack, _num, _address, _owner, _zone, _gameScript)
    {
        //カード名
        name = "ぽのか先輩";

        //タイプ
        type = Type.spell;

        //ユーザー
        // ※ UserListクラス.GetUserNameを使ってください
        user.Add(UserList.GetUserName(UserList.User.higashiyamagenji));

        //色とその濃さ
        //自機の場合、ゲーム開始時の彩度
        color[(int)Color.red]    = 1;
        color[(int)Color.orange] = 0;
        color[(int)Color.yellow] = 0;
        color[(int)Color.green]  = 0;
        color[(int)Color.blue]   = 0;
        color[(int)Color.indigo] = 0;
        color[(int)Color.violet] = 0;

        //コストと火力と耐久
        //自機の場合コストは不要
        cost      = 1;
        power     = 0;
        toughness = 2;

        //テキスト
        text = "プレイ:対象がスペルなら、ターン終了時まで+3/+0する。";

        AbilityList = new[] { typeof(Ability0000003_01) };
    }
Beispiel #2
0
    Card0000001(int _pack, int _num, int _address, int _owner,
                GameScript.Zone _zone, GameScript _gameScript)
        : base(_pack, _num, _address, _owner, _zone, _gameScript)
    {
        //カード名
        name = "東山源治";

        //タイプ
        type = Type.character;

        //ユーザー
        // ※ UserListクラス.GetUserNameを使ってください
        user.Add(UserList.GetUserName(UserList.User.higashiyamagenji));

        //色とその濃さ
        //自機の場合、ゲーム開始時の彩度
        color[(int)Color.red]    = 1;
        color[(int)Color.orange] = 0;
        color[(int)Color.yellow] = 0;
        color[(int)Color.green]  = 0;
        color[(int)Color.blue]   = 0;
        color[(int)Color.indigo] = 0;
        color[(int)Color.violet] = 0;

        //コストと火力と耐久
        //自機の場合コストは不要
        cost      = 0;
        power     = 0;
        toughness = 0;

        //テキスト
        text = "";

        //ability; //能力
    }
Beispiel #3
0
    public static Card GetCard(int _pack, int _num,
                               int _address, int _owner, GameScript.Zone _zone, GameScript _gameScript)
    {
        bool fault = false;

        if (_pack < 0 || DataList.Length <= _pack)
        {
            fault = true;
        }
        else if (_num < 0 || DataList[_pack].Length <= _num)
        {
            fault = true;
        }

        Card re;

        if (fault)
        {
            //(int _pack, int _num, int _address, int owner, GameScript.Zone _zone, GameScript _gameScript)
            re = DataList[0][0].GetConstructor(new Type[] {
                typeof(int), typeof(int), typeof(int), typeof(int), typeof(GameScript.Zone), typeof(GameScript)
            })
                 .Invoke(new object[] { _pack, _num, _address, _owner, _zone, _gameScript }) as Card;
        }
        else
        {
            re = DataList[_pack][_num].GetConstructor(new Type[] {
                typeof(int), typeof(int), typeof(int), typeof(int), typeof(GameScript.Zone), typeof(GameScript)
            })
                 .Invoke(new object[] { _pack, _num, _address, _owner, _zone, _gameScript }) as Card;
        }

        return(re);
    }
Beispiel #4
0
    //=================================================================

    //コンストラクタ
    public Card(int _pack, int _num, int _address, int _owner, GameScript.Zone _zone, GameScript _gameScript)
    {
        id         = _pack * PACK_DIVIDE + _num;
        address    = _address;
        owner      = _owner;
        zone       = _zone;
        gameScript = _gameScript;

        Reset();
    }
Beispiel #5
0
 Card0000000(int _pack, int _num, int _address, int _owner,
             GameScript.Zone _zone, GameScript _gameScript)
     : base(_pack, _num, _address, _owner, _zone, _gameScript)
 {
     //システム処理用
 }
Beispiel #6
0
 public CardError(int _pack, int _num, int _address, int _owner, GameScript.Zone _zone, GameScript _gameScript)
     : base(_pack, _num, _address, _owner, _zone, _gameScript)
 {
     name = ERROR_CARD_NAME;
 }