private SeaTerritory makeConnections(string line, Button button)
        {
            SeaTerritory sea;
            string[] splitLine = line.Split(':');
            string name = splitLine[0];
            string[] connections = splitLine[1].Split(',');
            List<string> list = new List<string>();
            List<string> placeHolderSeaToLand = new List<string>();
            foreach(string s in connections)
            {
                list.Add(s.Trim());
            }

            sea = new SeaTerritory(name, 0, resource.Neutral, false, new PlaceHolderOrderToken(), button, placeHolderSeaToLand, list);
            allSeas.Add(name, sea);
            return sea;


        }
Ejemplo n.º 2
0
        public void doMarchOrder(SeaTerritory passedTerritory, TextBlock passedText)
        {

        }
        public void performButtonFunction(SeaTerritory passedTerritory, TextBlock passedText)
        {
            switch (turnPhase)
            {
                case TurnPhase.PlaceTokens:
                   // takeTurn.updateDisableButtons();
                    currentTerritory = passedTerritory;
                    ChooseOrderTokenPopup.IsOpen = false;
                    ChooseOrderTokenPopup.IsOpen = true;
                    
                    //passedTerritory.setOrderToken(new MarchOrder(false, true, false));
                    //passedText.Text = takeTurn.territoryPrintOut(passedTerritory);

                    break;
                case TurnPhase.Westeros:

                    break;
                case TurnPhase.Raid:

                    break;
                case TurnPhase.March:

                    resolveMarch.doMarchOrder(passedTerritory, passedText);

                    break;
                case TurnPhase.ConsolidatePower:


                    turnNum++;
                    break;
            }


        }
Ejemplo n.º 4
0
        public void DrawIt(SeaTerritory passedTerritory)
        {

        }
Ejemplo n.º 5
0
 public void setHouseStartingSea(House house, SeaTerritory sea, int numShips)
 {
     sea.setHouseOccupied(house);
     sea.setNumShips(numShips);
 }
Ejemplo n.º 6
0
        public string territoryTextToString(string name, int numShips, OrderToken order, SeaTerritory sea)
        {
            string returnString = name + "- ";
            if (numShips > 0)
            {
                returnString += " S: " + numShips;
            }

            returnString += order.toString();

            return returnString;
        }
Ejemplo n.º 7
0
 public string territoryPrintOut(SeaTerritory passedTerritory)
 {
     string str = territoryTextToString(passedTerritory.getHouseOccupied().getName(), passedTerritory.getNumShips(), passedTerritory.getOrderToken(), passedTerritory);
     return str;
 }