Esempio n. 1
0
        public Game(string name, Player owner)
        {
            _players = new List<Player>();
            _players.Add(owner);

            Owner = owner;
            Name = name;
            IsStarted = false;
        }
Esempio n. 2
0
        public static void DealCards(PlayingDeck Deck, Player PlayerOne, Player PlayerTwo)
        {
            int CardCount = 0;

               while (CardCount != Deck.DeckCount)
               {
               PlayerOne.PlayersDeck.AddCardToBottom(Deck.PickACard(CardCount));
               CardCount++;
               PlayerTwo.PlayersDeck.AddCardToBottom(Deck.PickACard(CardCount));
               CardCount++;
               }
        }
Esempio n. 3
0
 // this is the bound action as described above.
 public override void onAddAction(Vector3Int location, ushort type, Players.Player causedBy)
 {
     ColonyAPI.Helpers.Utilities.WriteLog("ColonyAPIExample", causedBy.Name + " placed an awesome block!");
     base.onAddAction(location, type, causedBy);
 }
Esempio n. 4
0
 public virtual void AddPlayer(Player player)
 {
     _players.Add(player);
 }