Java课设——个人博客
一、功能架构图
1.1.程序流程图(黄色边框为个人负责模块)
2.UML类图(黄色为个人负责模块)
二、主要代码简述
1.*主要流程
void launch() {
this.setVisible(true);
this.setSize(768, 1000);
this.setLocationRelativeTo(null);
this.setTitle("集大矿工");
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
super.mouseClicked(e);
int leftButton = 1;
int rightButton = 3;
switch (gameState) {
case 0:
if (e.getButton() == rightButton) {
gameState = 1;
backGround.startTime = System.curr