Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Defining areas for mouselistener in Java?

Name: Anonymous 2007-07-04 10:04 ID:zJcfOP/9

Well, I have to code a risk clone in java (yes, fail) and I need the program to select the province when clicked on - so I need to define these areas some way. My idiot instructor suggested that I add every pixel manually, and I happen to prefer dying over it.

I am sure there is a more intelligent way, but does anyone know?

Name: Anonymous 2007-07-04 12:07 ID:xtJT+2Ic

you have a bitmap of each region. you know where you place it. To iterate through all the bitmaps and check to see if your click was there is not hard. Fuck you guys are such retards.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List