From 845d7fedf854fd19fc91f18a5adb728849bee672 Mon Sep 17 00:00:00 2001 From: Nic0Nic0Nii Date: Tue, 28 Sep 2021 04:02:23 +0000 Subject: [PATCH] Added mouse event detection. Co-authored-by: sigonasr2 --- Meteo_Engine.jar | Bin 14601 -> 14681 bytes src/sig/Block.java | 16 ++++++++++++++-- src/sig/BlockClump.java | 4 ++-- src/sig/Board.java | 21 +++++++++++---------- src/sig/Meteo.java | 2 +- 5 files changed, 28 insertions(+), 15 deletions(-) diff --git a/Meteo_Engine.jar b/Meteo_Engine.jar index 3b221ca810faf828f9fe70a05af1c41dcbbb3fd6..0954251f9270b00651ed7870194fe77f2c0c8b7b 100644 GIT binary patch delta 10716 zcmZ8{b8scfw{e=-PP55 z@9zF%)$YAkg!8I1l9DVW6b2Y9EG!r_kw5|xALQSIO#9zMQXMm95&<|8@B)Bu_Vtsn zZ9^}1pD`Xn1hqWnt0jQ8Sv@~9K7J?^+od4g7(vn*35K-Skv4y+{Kre-zQ?cA=nw0n zVs^e)m}lbWSzy1@!lrBw1bbJ;@0Pdo%Z84Yj_JEMVd2j&hKO-$*@M9_HO7g%bp7i@ zok8)DEFe$(1XQ&GLy=w%;5<%0C$tmjimtVqr1u<=IP1X>`HrYFtQek<7PCv!keM3? zOY2d{W`1Hbx$b~82nENUb;DfKT+@gJN8QZS)D*h4#jc+Vx{<26N|z;@*__KYH5%co zyVao81zdbRrHO^tlRv3+LoPfe;ARzPR#g>yrrC8agu@7v;f*c?cr&~&$_*6`7-SH) zk=BHEY3^*ZPE{GQ&ZUUdTewJ68-Y8%Mxk7a>5yP?z;N!(O!kc+(E3*M3&i1mZdhq* zTcwq8aU(@R6t{f{g-iu7G~c4s&~ z6s(^&JI%3FRz}%$jzJyt?S#OV0L4fako^HV;Fit*_p3S zto4ZGdPG?S;&s&h^M+g?T4jngpNx3o{f=poUtI{un&`S#ID=F^-Aa!e6YqZ| zDo@SN_uDT79YJ}FJvCawV)Rp&jRT)Nfa6zuwqmXMjkds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BT;X`i~R!H6sxs5ueLm8s=2aFN)C#CvF%d6 zojqG80bD{w0-)3vr_nsX?e8$~c7v#Fw-Q?S3xSw^eTnMgNgyk@M~ET1_hT1087pPe zl@U>D_@{dQg`h5EWqu?F#6LhNA<*-rUxD}rF@xD=!j!}!*9VNu#hfS}f&_fWSpS7fXR%Dk;?=L0zFjkEAySxoEHQ1;Wg!DSKM#>#~$>d+gE4 z0f0HCWD72hK1J(m&q+o>8nsivSMoc=)n9B%p4S7)=6^-?#-&E|A`mgo-a%#Gjn1Hz z45aG#K&$&rfdj8fA?GhTY}*q-Ext`Y@$Mh7=7a754=7j=!*YkYXiR{Fh2WAb07{;J zPUFzDqVGVXM(bSA5>VWNVZAzb)sxXQN4N|M`*8{wKK(a=NGt%oz7`4$ObG7(1KkfU zw|_b&$!0u!{{US+j}!7=zz6tW&QUTkFB{q4JOA#xV1fO69781oc`5!;dhrxR4gv=Q z8;1Y`!~eGq*ga};9WU)aF*bM!A-d3$fB%oozhM~lKWsR#lll0FN&k*6sI4Ri`Ipnk zzj#o8LH56fezGec#Xo*C`3S)al3V!5^!~Q^_oe^SZ80ktn2WU~tD?E9xx;@mr&Q#@ kA+W&ympTb>S{Ucz|LY!Af6f0ij!$Oir+|Ux`TGR_1zl9~6#xJL diff --git a/src/sig/Block.java b/src/sig/Block.java index 8e5ea08..bad29b3 100644 --- a/src/sig/Block.java +++ b/src/sig/Block.java @@ -6,6 +6,7 @@ import java.awt.Color; public class Block{ BlockState state; int x,y; //Relative to its block clump + int draw_x,draw_y; final static BlockState[] STARTINGSTATES = {BlockState.BLUE, BlockState.GREEN, BlockState.ORANGE, @@ -22,12 +23,23 @@ public class Block{ public String toString() { return "Block [state=" + state + ", x=" + x + ", y=" + y + "]"; } - public void draw(Graphics g, double x, double y, int block_width, int block_height,int launched) { + public void draw(Graphics g, double x, double y, int block_width, int block_height, int launched, boolean selected) { if (Meteo.DEBUG_DRAWING==DebugMode.MODE0&&launched<=-1) { g.setColor(Color.BLACK); } else { g.setColor(state.getCol()); } - g.fill3DRect((int)x+this.x*block_width,(int)y-this.y*block_height, block_width, block_height, true); + + draw_x=(int)x+this.x*block_width; + draw_y=(int)y-this.y*block_height; + + g.fill3DRect(draw_x, draw_y, block_width, block_height, true); + + if (selected) { + g.setColor(Color.RED); + for (int i=0;i<2;i++) { + g.drawRect(draw_x+i-1,draw_y+i-1,block_width-1,block_height-1); + } + } } } \ No newline at end of file diff --git a/src/sig/BlockClump.java b/src/sig/BlockClump.java index 6a4b780..a140a88 100644 --- a/src/sig/BlockClump.java +++ b/src/sig/BlockClump.java @@ -54,9 +54,9 @@ public class BlockClump { } updateBlockCollision(); } - public void drawBlocks(Graphics g, int originX, int originY, int block_width, int block_height) { + public void drawBlocks(Graphics g, int originX, int originY, int block_width, int block_height, Block selectedBlock) { for (Block b : blocks) { - b.draw(g,originX+x,originY-y,block_width,block_height,launched); + b.draw(g,originX+x,originY-y,block_width,block_height,launched,selectedBlock!=null&&selectedBlock.equals(b)); if (Meteo.DEBUG_DRAWING==DebugMode.MODE2) { g.setColor(Color.BLACK); g.drawString(Integer.toString(maxBlockHeight),(int)x+b.x*block_width+originX+4,(int)-y-b.y*block_height+originY+16); diff --git a/src/sig/Board.java b/src/sig/Board.java index eff3cae..e291dbd 100644 --- a/src/sig/Board.java +++ b/src/sig/Board.java @@ -24,7 +24,7 @@ public class Board { int attack_counter=0; BlockClump clumpClickId; - Block clickBlockX; + Block clickBlock; final static BlockState[] STARTINGSTATES = {BlockState.BLUE, BlockState.GREEN, @@ -252,7 +252,7 @@ public class Board { final int DRAW_ENDX = (int)(x + block_width*((double)width/2)); for (BlockClump bc : blockData) { - bc.drawBlocks(g,DRAW_STARTX,DRAW_STARTY,block_width,block_height); + bc.drawBlocks(g,DRAW_STARTX,DRAW_STARTY,block_width,block_height,clickBlock); } g.setColor(Color.BLACK); g.fillRoundRect(DRAW_STARTX, DRAW_STARTY+block_height, DRAW_ENDX-DRAW_STARTX, 3, 3, 1); @@ -268,15 +268,16 @@ public class Board { public void mousePressed(MouseEvent e) { //System.out.println("Pressed: "+e.getPoint()); //Adjust Y coordinate based on where the board is positioned. - int MOUSEX = e.getX(); - int MOUSEY = y-e.getY(); + clickBlock=null; + clumpClickId=null; + outer: for (BlockClump bc : blockData) { - Rectangle bounds = new Rectangle((int)(bc.x+x),(int)(bc.y+y),width*block_width,bc.maxBlockHeight*block_height); - if (bounds.contains(MOUSEX,MOUSEY)) { - System.out.println("Clicked inside clump "+bc); - break; - } else { - System.out.println("Off by "+(bc.x+x-MOUSEX)+","+(bc.y+y-MOUSEY)); + for (Block b : bc.getBlocks()) { + if (new Rectangle(b.draw_x,b.draw_y,block_width,block_height).contains(e.getPoint())) { + clickBlock=b; + clumpClickId=bc; + break outer; + } } } } diff --git a/src/sig/Meteo.java b/src/sig/Meteo.java index 2087f5f..c734d1a 100644 --- a/src/sig/Meteo.java +++ b/src/sig/Meteo.java @@ -59,7 +59,7 @@ public class Meteo implements MouseListener{ } }.start(); - f.addMouseListener(this); + f.getContentPane().addMouseListener(this); f.add(p); f.setSize(SCREEN_WIDTH,SCREEN_HEIGHT); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);