Exemplo n.º 1
0
 public Player()
 {
     results = new int[NUM_RESULTS];
     playedThisGame = false;
     card = null;
     isOnATeam = false;
 }
Exemplo n.º 2
0
        public void LoadCardInfo(int playerId)
        {
            DataTable table;

            // get card info
            table = DbUtils.GetDataTable(string.Format("select * from card_info where player_id = {0}", playerId));

            if (table.Rows.Count > 0) // just use the first row, should only be one
            {
                card = new CardInfo(table.Rows[0]);
            }
        }