Object that defines a card
Exemplo n.º 1
0
 public GameRoundCard(Card card, Int32 userId, Int32 gameRoundID, Int32 gameID)
     : this()
 {
     Card = card;
     Card_CardID = card.CardID;
     DatePlayed = DateTime.UtcNow;
     PlayedBy_UserId = userId;
     GameRound_GameRoundID = gameRoundID;
     Game_GameID = gameID;
 }
Exemplo n.º 2
0
        public GameRound(IDataReader idr)
            : this()
        {
            GameRoundID			= idr.GetValueByName<Int32>("GameRoundID");
            Started				= idr.GetValueByName<DateTime>("Started");
            GameID				= idr.GetValueByName<Int32>("Game_GameID");
            CurrentPlayerCount	= idr.GetValueByName<Int32>("CurrentPlayers");
            PlayedCount			= idr.GetValueByName<Int32>("Played");

            CardCommander		= new User(idr);
            Question			= new Card(idr);
        }
Exemplo n.º 3
0
        public GameRoundCard(IDataReader idr)
        {
            Card_CardID = idr.GetValueByName<Int32>("CardID");
            DatePlayed = idr.GetValueByName<DateTime>("DatePlayed");
            Game_GameID = idr.GetValueByName<Int32>("Game_GameID");
            GameRound_GameRoundID = idr.GetValueByName<Int32>("GameRound_GameRoundID");
            GameRoundCardID = idr.GetValueByName<Int32>("GameRoundCardID");
            PlayedBy_UserId = idr.GetValueByName<Int32>("PlayedBy_UserId");
            PlayOrder = idr.GetValueByName<Int16>("PlayOrder");
            Winner = idr.GetValueByName<Boolean>("Winner");
            AutoPlayed = idr.GetValueByName<Boolean>("AutoPlayed");

            PlayedBy = new User(idr);
            Card = new Card(idr);
        }