Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (671)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  That Evil MouseListener of mine..  (Read 1269 times)
0 Members and 1 Guest are viewing this topic.
Offline elwiz

Senior Newbie

Bom-Shackalack, Jatack!

« Posted 2004-12-30 04:34:57 »

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)
Offline elwiz

Senior Newbie

Bom-Shackalack, Jatack!

« Reply #1 - Posted 2004-12-30 07:52:37 »

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  :-/
Offline oNyx

JGO Coder

Medals: 2

pixels! :x

« Reply #2 - Posted 2004-12-30 08:32:41 »

>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:

弾幕 ☆ @mahonnaiseblog
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline elwiz

Senior Newbie

Bom-Shackalack, Jatack!

« Reply #3 - Posted 2004-12-30 08:53:08 »

Stupid me..  of course not. I was talking about my implementing of

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

Offline Malohkan

Senior Devvie

while (true) System.out.println("WOO!!!!");

« Reply #4 - Posted 2004-12-30 16:38:10 »

the source is available at that link there... why don't you just look at that?

Admin and Game Developer at
Play Rimscape!    |    Play Conquer!
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

IanParcs (39 views)
2016-04-18 14:18:53

KaiHH (38 views)
2016-04-18 08:35:41

KaiHH (69 views)
2016-04-15 12:43:58

theagentd (71 views)
2016-04-14 02:16:17

theagentd (83 views)
2016-04-14 02:15:43

IanParcs (96 views)
2016-04-12 03:51:16

IanParcs (39 views)
2016-04-12 03:50:03

IanParcs (35 views)
2016-04-12 03:49:54

IanParcs (32 views)
2016-04-12 03:49:52

IanParcs (40 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!