public Game(string name, Player owner) { _players = new List<Player>(); _players.Add(owner); Owner = owner; Name = name; IsStarted = false; }
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++; } }
// 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); }
public virtual void AddPlayer(Player player) { _players.Add(player); }