Skip to content

Comments

Add RobotInterface.java#2

Open
ecolban wants to merge 90 commits intoleague-workshopper:masterfrom
ecolban:master
Open

Add RobotInterface.java#2
ecolban wants to merge 90 commits intoleague-workshopper:masterfrom
ecolban:master

Conversation

@ecolban
Copy link

@ecolban ecolban commented Aug 19, 2018

  • Move documentation comments from Robot to RobotInterface.
  • Regenerate doc
  • Regenerate robot.jar
  • Let Driver implement RobotInterface
  • Remove WasdKeyboardAdapter since a long press on a letter key brings up a menu on MacOS, thus making it impractical to use letter keys to control a robot

joonspoon and others added 30 commits July 25, 2015 14:39
Needed to lift pen before moving.
setX and setY was automatically setting the pen to down. Now it will
retain the pen's position whether it was up or down.
Conflicts:
	src/org/jointheleague/graphical/robot/Robot.java
setX and setY was automatically setting the pen to down. Now it will
retain the pen's position up or down.
If the Robot's first actions were penDown() and turn(), then a line
would be drawn from the start from 0, 0 to the robot's start position.
That's been fixed. Also the pen width has been clamped to 1 and 10
Moved the League background to the top right corner, made it look
better, and resized it nicely.
-Took all image related methods from Robot and put them in RobotImage
-Created miniaturize and expand methods so all robots can be
miniaturized
-added getAverageColor to Util class
-added constants to RobotImage to clean up code
-some other stuff that I can't remember
-added alpha component to pixels in Util.getAverageColor for better
miniaturization
-sparkle now works when the robot is static (not moving)
2) Implemented singleton on RobotWindow
3) Corrected a couple of concurrency issues
4) Removed many static and instance variables
5) Removed the Robot.update() method and simplified code
6) Reverted to using the Java API's Image and BufferedImage rather than
RobotImage. RobotImage has one static method to load a "robi" file into
a BufferedImage, which it returns
7) Removed Util, Vector2D, and Pixel classes
than the more low-level wait-notify mechanism. Hopefully this is more
intuitively understandable.
than using the more low level wait/notify mechanism. Other changes are
cosmetic.
Fixed bug in RobotImage.loadRobi() method which caused loading .robi
files from a compressed jar file to fail. 
Updated Robot.jar
erikcolban and others added 11 commits December 16, 2018 19:37
+ Add new methods lineTo, quadTo, cubicTo, and followPath
+ Deprecate moveTo and replace by setPos
+ Add overloaded moveTo to fit in with other path methods
+ Add new examples
Regenerate jar file
Move examples into separate module
Update README.md
@ecolban ecolban force-pushed the master branch 2 times, most recently from 9eb812f to 316e81e Compare February 27, 2019 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants