Author: bkuhn
Date: Wed Sep 17 03:34:45 2008
New Revision: 4490
URL: http://svn.gna.org/viewcvs/pokersource?rev=4490&view=rev
Log:
[EMAIL PROTECTED]: bkuhn | 2008-09-16 21:33:50 -0400
This implements the sending of PacketPokerPlayerStats() immediately after
the PacketPokerPlayerArrive(). The changes here are a bit extensive.
* pokeravatar.py: This is the primary change, to make sure the packet is
sent correctly from the avatar when it sends necessary packets on the
join.
* pokerservice.py: Realized the UserStats class wasn't initialized
properly. test-pokerservice.py.in has been modified accordingly.
* userstats.py: currency_serials can be 0, namely for play money. We
have to permit this in UserRankPercentileAccessor.
test-userstats.py.in has been modified accordingly.
* test-pokeravatar.py.in: additional tests that cover:
** the sending of one's own PacketPokerPlayerStats() packet (which
is actually sent by PokerTable.newPlayerInformation(), whose call
to the UserStats object was committed previously)
** the receipt of PacketPokerPlayerStats() for others at the table.
Modified:
trunk/ (props changed)
trunk/poker-network/ChangeLog
trunk/poker-network/pokernetwork/pokeravatar.py
trunk/poker-network/pokernetwork/pokerservice.py
trunk/poker-network/pokernetwork/userstats.py
trunk/poker-network/tests/test-pokeravatar.py.in
trunk/poker-network/tests/test-pokerservice.py.in
trunk/poker-network/tests/test-userstats.py.in
_______________________________________________
Pokersource-commits mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-commits