Пример #1
0
        public ActionCard takeTopCard()
        {
            ActionCard top = this.getPlayedCardsAt(this.playedCards.Count - 1);

            this.removePlayedCardsAt(this.playedCards.Count - 1);
            return(top);
        }
Пример #2
0
 public Bandit(string c)
 {
     this.characterAsString = c;
     this.hostageAsString   = null;
     this.loot      = new ArrayList();
     this.bullets   = new ArrayList();
     this.deck      = new ArrayList();
     this.hand      = new ArrayList();
     this.toResolve = null;
     this.consecutiveTurnCounter = 0;
 }
Пример #3
0
 public Corp(
     IPilot pilot,
     Turn turn,
     PaidWindow paidWindow,
     ActionCard actionCard,
     zones.corp.Zones zones,
     ClickPool clicks,
     CreditPool credits,
     Card identity
     )
 {
     this.pilot      = pilot;
     this.turn       = turn;
     this.paidWindow = paidWindow;
     this.actionCard = actionCard;
     this.zones      = zones;
     this.clicks     = clicks;
     this.credits    = credits;
     this.identity   = identity;
 }
Пример #4
0
 public Runner(
     IPilot pilot,
     RunnerTurn turn,
     PaidWindow paidWindow,
     ActionCard actionCard,
     int tags,
     Zones zones,
     ClickPool clicks,
     CreditPool credits,
     Card identity
     )
 {
     this.pilot      = pilot;
     this.turn       = turn;
     this.paidWindow = paidWindow;
     this.actionCard = actionCard;
     this.tags       = tags;
     this.zones      = zones;
     this.clicks     = clicks;
     this.credits    = credits;
     this.identity   = identity;
 }
Пример #5
0
        public bool containsPlayedCard(ActionCard a)
        {
            bool contains = this.playedCards.Contains(a);

            return(contains);
        }
Пример #6
0
 public void removePlayedCard(ActionCard a)
 {
     this.playedCards.Remove(a);
 }
Пример #7
0
 public void addPlayedCards(ActionCard a)
 {
     this.playedCards.Insert(0, a);
 }
Пример #8
0
 public void addPlayedCardsAt(int index, ActionCard a)
 {
     this.playedCards.Insert(index, a);
 }
Пример #9
0
 public void setToResolve(ActionCard ac)
 {
     this.toResolve = ac;
 }