Example #1
0
        public void assignGoal(List <RiskPlayer> players, RiskPlayer player, List <Continent> world)
        {
            int  index = Random.Range(0, goals.Count - 1);
            Goal goal  = null;

            if (index == 2 && players.Count % 2 != 0 && destroyEnemyAssigned(players) == players.Count - 1)
            {
                goal = goals[0].getClone();
            }
            else
            {
                goal = goals[index].getClone();
            }

            goal.fixGoal(players, player, world);
            player.setGoal(goal);
        }
Example #2
0
 public void drawCard(RiskPlayer player)
 {
     player.addLandCard(landCards[0]);
     landCards.RemoveAt(0);
 }