Package net.sf.nebulacards.comm.netpkt

Examples of net.sf.nebulacards.comm.netpkt.BidPkt


    send( new GameNamePkt(n) );
  }

  public void setBid( int who, int bid )
  {
    send( new BidPkt(bid,who) );
  }
View Full Code Here


          iface.clearTableau(((TrickPkt) o).getWho());
        } else if (o instanceof PlayPkt) {
          iface.cardToTableau(((PlayPkt) o).getWho(), ((PlayPkt) o)
              .getCard());
        } else if (o instanceof BidPkt) {
          BidPkt bp = (BidPkt) o;
          iface.setBid(bp.getWho(), bp.getBid());
        } else if (o instanceof SofarPkt) {
          iface.playedSoFar(((SofarPkt) o).getCards());
        } else if (o instanceof BootPkt) {
          inGame = false;
          iface.booted(((BootPkt) o).getMessage());
View Full Code Here

    }

    public boolean submitBid(int bid) {
      // TODO check synchronization
      if (ourBid) {
        com.send(new BidPkt(bid, 0));
        ourBid = false;
        return true;
      } else
        return false;
    }
View Full Code Here

TOP

Related Classes of net.sf.nebulacards.comm.netpkt.BidPkt

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.