Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (623)
Games in Android Showcase (176)
games submitted by our members
Games in WIP (676)
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 1171 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.

basil_ (42 views)
2015-09-30 17:04:40

shadowstryker (21 views)
2015-09-29 15:55:06

TheSpaceHedgehog (27 views)
2015-09-29 01:58:48

GamerC4 (50 views)
2015-09-24 21:10:38

GamerC4 (70 views)
2015-09-24 21:09:48

htuy (25 views)
2015-09-24 04:57:24

htuy (35 views)
2015-09-24 04:56:35

htuy (25 views)
2015-09-24 04:56:09

htuy (26 views)
2015-09-24 04:47:33

Roquen (63 views)
2015-09-21 12:54:28
Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36 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!