Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 27th, 2012, 04:26 AM
suifer suifer is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 8 suifer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 22 m 47 sec
Reputation Power: 0
Homework - Positioning of walls

Hello,
I am contacting you because I need help.
Then I is an image in this image I made a script that randomly put walls on the image, the problem is that I want the walls arise randomly in a part of the image and not over the entire image.
So how to say the walls of this position only in this part of the image.
Here is the picture:
http://img812.imageshack.us/img812/3801/fondarene.jpg
So infact it should not go on the walls yellow.

Thank you in advance.

Reply With Quote
  #2  
Old December 27th, 2012, 07:07 AM
NormR's Avatar
NormR NormR is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Aug 2010
Location: SW Missouri
Posts: 2,955 NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 53 m 34 sec
Reputation Power: 345
Can you post the code you are having problems with?

Reply With Quote
  #3  
Old December 27th, 2012, 07:37 AM
suifer suifer is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 8 suifer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 22 m 47 sec
Reputation Power: 0
Infact I do not code for AC because I do not know how to do I just code for walls:
public class extends Object implements Global Wall {
public Wall () {
super.posX = (int) Math.round (Math.random () * L_ARENE - L_MUR);
super.posY = (int) Math.round (Math.random () * H_ARENE - H_MUR);
super.label = new Label (-1, new JLabel ());
super.label.getJLabel (). setHorizontalAlignment (SwingConstants.CENTER);
super.label.getJLabel (). setVerticalAlignment (SwingConstants.CENTER);
super.label.getJLabel (). setBounds (super.posX, super.posY, L_MUR, H_MUR);
super.label.getJLabel (). setIcon (new ImageIcon (MUR));

}

}

I would like to integrate a code here to tell him or should not go.

Reply With Quote
  #4  
Old December 27th, 2012, 07:49 AM
NormR's Avatar
NormR NormR is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Aug 2010
Location: SW Missouri
Posts: 2,955 NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 53 m 34 sec
Reputation Power: 345
Can you make a small complete program that compiles, executes and shows the problem?
There are too many undefined objects in the posted code to be able to test it.

Also please wrap your code in code tags to preserve the formatting.

Reply With Quote
  #5  
Old December 27th, 2012, 08:08 AM
suifer suifer is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 8 suifer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 22 m 47 sec
Reputation Power: 0
It may be complicated there is one code may not counting all the images.
But the code is that I go there is a place just randomly walls 20 on the picture I show you.
Me and those I want to do is tell the wall do not go in the yellow.

Reply With Quote
  #6  
Old December 27th, 2012, 08:26 AM
NormR's Avatar
NormR NormR is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Aug 2010
Location: SW Missouri
Posts: 2,955 NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 53 m 34 sec
Reputation Power: 345
I can not help you without code that compiles, executes and shows the problem.

Make a small complete program to show the problem:http://sscce.org/

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Homework - Positioning of walls

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap