public void Initialize(GUIBattleModeMenu battleModeMenu)
 {
     this.battleModeMenu = battleModeMenu;
     upMethodInfo = ReflectionsManager.GetMethod (battleModeMenu, "up");
     downMethodInfo = ReflectionsManager.GetMethod (battleModeMenu, "down");
     getNumMenuButtonsMethodInfo = ReflectionsManager.GetMethod (battleModeMenu, "getNumMenuButtons");
 }
 public GUIBattleModeMenuWrapper(GUIBattleModeMenu battleModeMenu)
 {
     Initialize (battleModeMenu);
 }
Exemplo n.º 3
0
        private void Initialize(BattleMode battleMode)
        {
            this.battleMode = battleMode;
            this.handManager = GetHandManager ();

            cardClickedMethodInfo = ReflectionsManager.GetMethod (battleMode, "cardClicked");
            toggleUnitStatsMethodInfo = ReflectionsManager.GetMethod (battleMode, "toggleUnitStats");
            deselectAllTilesMethodInfo = ReflectionsManager.GetMethod (battleMode, "deselectAllTiles");
            gameMenu = (GUIBattleModeMenu)ReflectionsManager.GetValue (battleMode, "menu");
            controlBoard = false;
            tileRow = 2;
            tileColumn = 1;
        }