コード例 #1
0
    public AdvancedSearch(float x, float y, DeckEditorManager deck, DeckSearcher searcher)
    {
        GlobalVarAdvSearch.dropDownListOpen = false;

        _DeckSearcher = searcher;
        _DeckEditor = deck;
        /*
        _w *= _DeckEditor._xWindowScale;
        _h *= _DeckEditor._yWindowScale;
        */

        xScale = _DeckEditor._xWindowScale;
        yScale = _DeckEditor._yWindowScale;

        _x = x;
        _y = y;
        _Background = Resources.Load ("DeckEditor/AdvancedSearch") as Texture2D;
        _Data = new CardDataBase();
        AllCards = _Data.GetAllCards();

        _DropDownList = new PopupList((int)(_x + 80.0f), (int)(_y + 30.0f + 25.0f), 130, 20, 5);
        _DropDownList.Add("All");
        _DropDownList.Add("0");
        _DropDownList.Add("1");
        _DropDownList.Add("2");
        _DropDownList.Add("3");
        _DropDownList.Add("4");

        _ClanPopupList = new PopupList((int)(_x + 80), (int)(_y + 115), 130, 20, 5);
        _ClanPopupList.SetSliderYFactor(16.7f);
        _ClanPopupList.Add("All");
        _ClanPopupList.Add("Angel Feather");
        _ClanPopupList.Add("Aqua Force");
        _ClanPopupList.Add("Bermuda Triangle");
        _ClanPopupList.Add("Dark Irregulars");
        _ClanPopupList.Add("Dimension Police");
        _ClanPopupList.Add("Genesis");
        _ClanPopupList.Add("Gold Paladin");
        _ClanPopupList.Add("Granblue");
        _ClanPopupList.Add("Great Nature");
        _ClanPopupList.Add("Kagero");
        _ClanPopupList.Add("Link Joker");
        _ClanPopupList.Add("Megacolony");
        _ClanPopupList.Add("Murakumo");
        _ClanPopupList.Add("Narukami");
        _ClanPopupList.Add("Neo Nectar");
        _ClanPopupList.Add("Nova Grappler");
        _ClanPopupList.Add("Nubatama");
        _ClanPopupList.Add("Oracle Think Tank");
        _ClanPopupList.Add("Pale Moon");
        _ClanPopupList.Add("Royal Paladin");
        _ClanPopupList.Add("Shadow Paladin");
        _ClanPopupList.Add("Spike Brothers");
        _ClanPopupList.Add("Tachikaze");
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        gameplay = this;

        _MainCamera = (Camera)gameObject.GetComponent("Camera");

        _SelectionListWindow = new SelectionListWindow(Screen.width / 2, Screen.height / 2 + 100);

        _AbilityManagerList = new SelectionListGenericWindow(Screen.width / 2, Screen.height / 2 + 100);

        _SelectionCardNameWindow = new SelectionCardNameWindow(Screen.width / 2 - 50, Screen.height / 2);
        _SelectionCardNameWindow.CreateCardList();
        _SelectionCardNameWindow.SetGame(this);

        _DecisionWindow = new DecisionWindow(Screen.width / 2, Screen.height / 2 + 100);
        _DecisionWindow.SetGame(this);

        _NotificationWindow = new NotificacionWindow(Screen.width / 2, Screen.height / 2 + 100);
        _NotificationWindow.SetGame(this);

        FromHandToBindList = new List<Card>();

        AttackedList = new List<Card>();

        UnitsCalled = new List<Card>();

        EnemySoulBlastQueue = new List<Card>();

        _PopupNumber = new PopupNumber();

        _MouseHelper = new MouseHelper(this);
        GameChat = new Chat();

        opponent = PlayerVariables.opponent;

        playerHand = new PlayerHand();
        enemyHand = new EnemyHand();

        field = new Field(this);
        enemyField = new EnemyField(this);
        guardZone = new GuardZone();
        guardZone.SetField(field);
        guardZone.SetEnemyField(enemyField);
        guardZone.SetGame(this);

        fieldInfo = new FieldInformation();
        EnemyFieldInfo = new EnemyFieldInformation();

        Data = new CardDataBase();
        List<CardInformation> tmpList = Data.GetAllCards();
        for(int i = 0; i < tmpList.Count; i++)
        {
            _SelectionCardNameWindow.AddNewNameToTheList(tmpList[i]);
        }

        //camera = (CameraPosition)GameObject.FindGameObjectWithTag("MainCamera").GetComponent("CameraPosition");
        //camera.SetLocation(CameraLocation.Hand);

        LoadPlayerDeck();
        LoadEnemyDeck();

        gamePhase = GamePhase.CHOOSE_VANGUARD;

        bDrawing = true;
        bIsCardSelectedFromHand = false;
        bPlayerTurn = false;

        bDriveAnimation = false;
        bChooseTriggerEffects = false;
        DriveCard = null;

        //Texture showed above a card when this is selected for an action (An attack, for instance)
        CardSelector = GameObject.FindGameObjectWithTag("CardSelector");
        _CardMenuHelper = (CardHelpMenu)GameObject.FindGameObjectWithTag("CardMenuHelper").GetComponent("CardHelpMenu");
        _GameHelper = (GameHelper)GameObject.FindGameObjectWithTag("GameHelper").GetComponent("GameHelper");

        bPlayerTurn = PlayerVariables.bFirstTurn;

        //ActivePopUpQuestion(playerDeck.DrawCard());
        _CardMenu = new CardMenu(this);

        _AbilityManager = new AbilityManager(this);
        _AbilityManagerExt = new AbilityManagerExt();

        _GameHelper.SetChat(GameChat);
        _GameHelper.SetGame(this);

        EnemyTurnStackedCards = new List<Card>();

        dummyUnitObject = new UnitObject();
        dummyUnitObject.SetGame(this);

        stateDynamicText = new DynamicText();
    }