Discussion:
How to create circle around Myrobot.Need suggestion
asherbaig
2008-11-20 00:46:33 UTC
Permalink
Hi developers,
I want to know that how it could be possible to add
circle around myrobot.Any idea how to do that ?


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Robocode/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:Robocode-***@yahoogroups.com
mailto:Robocode-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
Robocode-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
flemmingnlarsen
2008-11-21 22:25:46 UTC
Permalink
You should have a look at my tutorial here:

http://testwiki.roborumble.org/w/index.php?title=Robocode/Graphical_Debugging

You should also have a look on the two sample robots:
- sample.PaintingRobot
- sample.Interactive

Regards,
- Flemming
Post by asherbaig
Hi developers,
I want to know that how it could be possible to add
circle around myrobot.Any idea how to do that ?
------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Robocode/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:Robocode-***@yahoogroups.com
mailto:Robocode-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
Robocode-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
flemmingnlarsen
2008-11-21 22:28:44 UTC
Permalink
You should have a look on my tutorial about Graphics Debugging here:

http://testwiki.roborumble.org/w/index.php?title=Robocode/Graphical_Debugging

You should also have a look on the source files for these two sample
robots:
- sample.PaintingRobot
- sample.Interactive

Regards,
- Flemming
Post by asherbaig
Hi developers,
I want to know that how it could be possible to add
circle around myrobot.Any idea how to do that ?
------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Robocode/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:Robocode-***@yahoogroups.com
mailto:Robocode-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
Robocode-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
asherbaig
2008-11-23 00:35:54 UTC
Permalink
Hi Developers,

I know it's very easy for you but for me its hard to undertstand.

As in interactive i couldn't found any information about creating a
circle around it.
Please help me where i have to put code in interactive to add circle
around it.
And if you can provide me the code for creating circle around
sample.interactive.I will deeply thankful to you.:)

Thanks
http://testwiki.roborumble.org/w/index.php?title=Robocode/Graphical_Debugging
Post by flemmingnlarsen
You should also have a look on the source files for these two sample
- sample.PaintingRobot
- sample.Interactive
Regards,
- Flemming
Post by asherbaig
Hi developers,
I want to know that how it could be possible to add
circle around myrobot.Any idea how to do that ?
------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Robocode/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:Robocode-***@yahoogroups.com
mailto:Robocode-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
Robocode-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
aatomik
2008-11-23 08:12:35 UTC
Permalink
Hi,

take a look at PaintingRobot.java
There is a little function, that does exactly what you are looking for.

/**
* Paint a red circle around our PaintingRobot
*/
public void onPaint(Graphics2D g) {
g.setColor(Color.red);
g.drawOval((int) (getX() - 50), (int) (getY() - 50), 100, 100);
g.setColor(new Color(0, 0xFF, 0, 30));
g.fillOval((int) (getX() - 60), (int) (getY() - 60), 120, 120);
}
Post by asherbaig
Hi Developers,
I know it's very easy for you but for me its hard to undertstand.
As in interactive i couldn't found any information about creating a
circle around it.
Please help me where i have to put code in interactive to add circle
around it.
And if you can provide me the code for creating circle around
sample.interactive.I will deeply thankful to you.:)
Thanks
------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Robocode/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:Robocode-***@yahoogroups.com
mailto:Robocode-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
Robocode-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Loading...