Yet more formatting changes. Should be just about compliant with the standard.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3138 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2004-10-15 03:09:46 +00:00
parent 0b0fcf9d15
commit 8ad2aefdf2
9 changed files with 97 additions and 143 deletions
@@ -1,5 +1,5 @@
//
// $Id: CardGameManager.java,v 1.3 2004/10/15 00:14:23 andrzej Exp $
// $Id: CardGameManager.java,v 1.4 2004/10/15 03:09:46 andrzej Exp $
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -50,12 +50,10 @@ public class CardGameManager extends GameManager
*/
public Hand dealHand (Deck deck, int size, int playerIndex)
{
if(deck.cards.size() < size)
{
if(deck.cards.size() < size) {
return null;
}
else
{
else {
Hand hand = deck.dealHand(size);
_omgr.postEvent(
@@ -82,16 +80,13 @@ public class CardGameManager extends GameManager
*/
public Hand[] dealHands (Deck deck, int size)
{
if(deck.cards.size() < size * _playerCount)
{
if(deck.cards.size() < size * _playerCount) {
return null;
}
else
{
else {
Hand[] hands = new Hand[_playerCount];
for(int i=0;i<_playerCount;i++)
{
for(int i=0;i<_playerCount;i++) {
hands[i] = dealHand(deck, size, i);
}