资源简介
com.dezhou2.rar
代码片段和文件信息
package com.dezhou2;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collection;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
public class AllChip extends JPanel{
Image cp0 = object.getImage(“images/chip/0.png“);
Image cp1 = object.getImage(“images/chip/1.png“);
Image cp2 = object.getImage(“images/chip/2.png“);
Image cp3 = object.getImage(“images/chip/3.png“);
Image cp4 = object.getImage(“images/chip/4.png“);
Image cp5 = object.getImage(“images/chip/5.png“);
Image z0 = object.getImage(“images/chip/z0.png“);
Image z1 = object.getImage(“images/chip/z1.png“);
Image z2 = object.getImage(“images/chip/z2.png“);
Image z3 = object.getImage(“images/chip/z3.png“);
Image n0 = object.getImage(“images/character/0.png“);
Image n1 = object.getImage(“images/character/1.png“);
Image n2 = object.getImage(“images/character/2.png“);
Image n3 = object.getImage(“images/character/3.png“);
Image n4 = object.getImage(“images/character/4.png“);
Image win = null;
ArrayList cp=new ArrayList();
static int i=0;
private int n=0a=0b=0;
private int allmoney = 0;
private int pay = 0;
private int myallpay = 0;
private int cpx[] = new int[200];
private int cpy[] = new int[200];
private int bi = 0;
private int c1=0c2=0c3=0c4=0;
private int cc1=0cc2=0cc3=0cc4=0;
PlayerMoney pm = new PlayerMoney();
Computer co = new Computer();
//所有场上押入的砝码
public void allchip(int money){
if (money == 10)
cp.add(cp0);
if (money == 20)
cp.add(cp1);
if (money == 50)
cp.add(cp2);
if (money == 100)
cp.add(cp3);
if (money == 200)
cp.add(cp4);
if (money == 500)
cp.add(cp5);
a++;
cpx[i]=(int) (Math.random()*120);
cpy[i]=(int) (Math.random()*100+80);
allmoney = allmoney + money;
i++;
switch(Background.n){
//画出和统计押注筹码,并判断是否没钱或者已弃牌
case 4:if(Computer4.c4m>0&&Computer4.jg4!=0){
cpx[i]=(int) (Math.random()*120);
cpy[i]=(int) (Math.random()*100+80);
allmoney = allmoney + money;
i++;
c4++;
}
case 3:if(Computer3.c3m>0&&Computer3.jg3!=0){
cpx[i]=(int) (Math.random()*120);
cpy[i]=(int) (Math.random()*100+80);
allmoney = allmoney + money;
i++;
c3++;
}
case 2:if(Computer2.c2m>0&&Computer2.jg2!=0){
cpx[i]=(int) (Math.random()*120);
cpy[i]=(int) (Math.random()*100+80);
allmoney = allmoney + money;
i++;
c2++;
}
case 1:if(Computer1.c1m>0&&Computer1.jg1!=0){
cpx[i]=(int) (Math.random()*120);
cpy[i]=(int) (Math.random()*100+80);
allmoney = allmoney + money;
i++;
c1++;
}
}
//判定最终赢家
if(Computer1.c1m<=0&&Computer2.c2m<=0&&Computer3.c3m<=0&&Computer4.c4m<=0){
JOptionPane.showConfirmDialog(null “所有人都已被你击败,传说中的赌王!“ “不可思议“ JOptionPane.YES_NO_OPTION);
System.exit(0);
}
}
//返回场上所有已押注的筹码
public int allchip(){
return allmoney;
}
//我押入的砝码
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 301 2015-04-15 15:41 com.dezhou2\.classpath
文件 387 2015-04-15 15:41 com.dezhou2\.project
文件 598 2015-04-15 15:41 com.dezhou2\.settings\org.eclipse.jdt.core.prefs
文件 6219 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\AllChip.class
文件 2068 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Background.class
文件 1034 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Bet.class
文件 1019 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Chip0.class
文件 1019 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Chip1.class
文件 1019 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Chip2.class
文件 1019 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Chip3.class
文件 1019 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Chip4.class
文件 1019 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Chip5.class
文件 3178 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Compare.class
文件 1427 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Competition$PaintThread.class
文件 1299 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Competition$Sounds.class
文件 8063 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Competition.class
文件 1008 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Computer.class
文件 2279 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Computer1.class
文件 2352 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Computer2.class
文件 2274 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Computer3.class
文件 2271 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Computer4.class
文件 1046 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Discard.class
文件 1028 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\ob
文件 1526 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Pla
文件 1576 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Pla
文件 4365 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Poker.class
文件 2987 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\PokerFace.class
文件 1206 2015-05-29 10:32 com.dezhou2\bin\com\dezhou2\Start.class
文件 34301998 2015-04-21 12:48 com.dezhou2\bin\com\dezhou2\tworoguesonemark.wav
文件 2930 2015-04-15 15:41 com.dezhou2\bin\images\button\0.png
............此处省略148个文件信息
相关资源
- H5牛牛源码微信牛牛带后台控制12345
- Windows网络编程之Delphi篇——完整版
- PartialDifferentialEquations+SecondEdition+201
- tiger_newhu5.99.73.zip
- 华南理工大学自动控制原理习题集答
- Kali.7z
- ParagonNTFS15.5.65.zip
- 自然语言处理综论.Daniel.第二版.pdf
- 统计学习方法-电子书及代码实现-李航
- HandsonMachineLearningwithScikit2E.zip
- zw_GraingerJohnJ.andWilliamD.Stevenson.Powersy
- test.pcm
- 高清GD和T几何尺寸与公差全文培训教
- SD.rar
- Battery_charge_discharge_400V_2015.zip
- 概率、随机变量与随机过程第4版.pd
- Web应用程序安全(原书第3版).pdf
- 游戏之巅.pdf
- z32nbp.pdf
- 信号与系统第三版-曾禹村编.pdf
- 螃蟹投票silence_vote1.7.5安装更新一体包
- 《自控力》.扫描版.pdf
- 程序员的自我修养.pdf
- ACAD12.0中文破解.rar
- 图解TCP_IP第5版.rar
- 计算机组成与设计:硬件软件接口原
- 2b1c45f66f83c7022a339ec352e5054f.rar
- 贝叶斯统计—高清—第二版2012茆诗松
- 工业以太网现场总线EtherCAT国家标准中
- Swift4从零到精通iOS开发.zip
评论
共有 条评论