Console client: Output similar to PokerTH log.

This commit is contained in:
lotodore
2008-12-24 23:22:23 +00:00
parent 60fd3e2010
commit 6797fa3f54
11 changed files with 404 additions and 112 deletions
+68 -2
View File
@@ -52,6 +52,7 @@ namespace pokerth_lib
m_state = State.Preflop;
m_players = players;
m_myPlayerId = myPlayerId;
m_smallBlind = smallBlind;
}
public State CurState
@@ -85,12 +86,73 @@ namespace pokerth_lib
}
public uint MyPlayerId
{
get
{
// no need to lock a mutex, this is read only.
return m_myPlayerId;
}
}
public uint SmallBlind
{
get
{
// no need to lock a mutex, this is read only.
return m_smallBlind;
}
}
public uint HighestSet
{
get
{
lock (m_mutex)
{
return m_myPlayerId;
return m_highestSet;
}
}
set
{
lock (m_mutex)
{
m_highestSet = value;
}
}
}
public uint MinimumRaise
{
get
{
lock (m_mutex)
{
return m_minimumRaise;
}
}
set
{
lock (m_mutex)
{
m_minimumRaise = value;
}
}
}
public int[] TableCards
{
get
{
lock (m_mutex)
{
return (int[])m_tableCards.Clone();
}
}
set
{
lock (m_mutex)
{
m_tableCards = value;
}
}
}
@@ -98,6 +160,10 @@ namespace pokerth_lib
private Object m_mutex;
private State m_state;
private Dictionary<uint, Player> m_players;
uint m_myPlayerId;
private int[] m_tableCards;
private uint m_myPlayerId;
private uint m_smallBlind;
private uint m_highestSet;
private uint m_minimumRaise;
}
}