public TasksForm(CardPile tasks, Game game) { InitializeComponent(); this.tasks = tasks; this.index = 0; this.number = tasks.GetCount(); this.game = game; }
public Player(PlayerColor color, string name) { this.points = 0; this.color = color; this.wagons = 45; this.name = name; this.wagonPile = new Dictionary <CardColor, int>(); this.tasksPile = new CardPile(); }
public InputReader() { this.cards = new CardPile(); this.mainTasks = new CardPile(); this.tasks = new CardPile(); this.citiesNames = new Dictionary <string, City>(); this.cities = new List <City>(); this.links = new List <Link>(); var assembly = Assembly.GetExecutingAssembly(); var resourceName = "TicketToRide.Resources.input.txt"; this.stream = assembly.GetManifestResourceStream(resourceName); this.sr = new StreamReader(stream); ReadInput(); }
public Game(GameForm form) { InputReader ir = new InputReader(); this.gameMap = ir.GetMap(); this.cards = ir.GetCards(); this.discarded = new CardPile(); this.mainTasks = ir.GetMainTasks(); this.tasks = ir.GetTasks(); this.tasksDiscarded = new CardPile(); this.players = ir.GetPlayers(); this.activePlayer = 0; this.cardsOnTable = new List <ICard>(); this.gv = new GameVisualizer(form, this); this.actionPoints = 2; this.firstRound = true; this.lastRound = false; }