protected override void OnTarget(Mobile from, object target) { if (!(target is PokerDealer)) { from.SendMessage("That isn't a poker dealer!"); return; } PokerDealer dealer = (PokerDealer)target; if (dealer.AddPokerSeat(from, from.Location)) { // add a stool just because :3 Stool stool = new Stool(); stool.Visible = false; stool.Movable = false; stool.MoveToWorld(from.Location, from.Map); from.SendMessage(0x22, "A new seat was successfully created."); } else { from.SendMessage(0x22, "There is no more room at that table for another seat. Try increasing the value of MaxPlayers first."); } }
public PokerGame(PokerDealer dealer) { Dealer = dealer; NeedsGumpUpdate = false; CommunityCards = new List <Card>(); State = PokerGameState.Inactive; Deck = new Deck(); Timer = new PokerGameTimer(this); Players = new PlayerStructure(this); }
public PokerGame( PokerDealer dealer ) { m_Dealer = dealer; m_NeedsGumpUpdate = false; m_CommunityCards = new List<Card>(); m_State = PokerGameState.Inactive; m_Deck = new Deck(); m_Timer = new PokerGameTimer( this ); m_Players = new PlayerStructure( this ); }