public Player() { results = new int[NUM_RESULTS]; playedThisGame = false; card = null; isOnATeam = false; }
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]); } }