That Evil MouseListener of mine..

Well, nope!

To be honest, it’s probably this evil morning and the lack of proper amount of coffee.

Anyway, just a thought. in the name of good “OOP” I was creating 3 classes, my GameUI, my GamePiece and my GameBoard. The thought was that the GameUI should implement the GameBoard, which extends a simple Jpanel.

That get’s me into trouble since the mouseListener then should be implemeneted at the gameBoard(correct?). And then I really need to move everything called “Logic” to the GameBoard since this one must know about the different pieces and what to do with them.
In the other hand… isn’t that kind of right? To let the GameUI be a simple conatiner with menus and the GameBoard the logic part wich implements GamePieces…

Am I out on a holiday here or what do you think…?
(yep, i really feel like a Clubie)

Well… it works… now I only need to find out a way to draw that ugly board. Why can’t they be satisfied with an ordinary chessboard instead of that lousy “cross” design :-/

Why can’t they be satisfied with an ordinary chessboard
instead of that lousy “cross” design

Hint: no one knows what you’re talking about :wink:

If you mean isometry:
http://forum.java.sun.com/thread.jspa?threadID=580217

;D
Stupid me… of course not. I was talking about my implementing of http://www.javaonthebrain.com/java/solitaire/

An assignment, university. Anyway, I did a ugly one, I created my 9.9 Grid of JPanels and then I hold the “dead corners” in an array, setting there BackGround to Black.
Turns out to look nice but be… well…

This will not do in the long run though, but it keeps me safe and warm during new year… :wink:
then I’ll have to do something about it… a LOT… actually

Regards

the source is available at that link there… why don’t you just look at that?