Becker Robots Package
Posted : adminOn 4/13/2018I am using the import becker.robots file for this assignment! I must create a class DistributeBot (extended RobotSE) which will put down a number of 'things' in the shape of 2 squares. Mavis Beacon Teaches Typing Version 11 more.
Becker.robots Class Flasher java.lang.Object becker.robots.Sim becker.robots.Thing becker.robots.Light becker.robots.Flasher. Package Class: Tree: Deprecated. Becker.robots Class Flasher java.lang.Object becker.robots.Sim becker.robots.Thing becker.robots.Light becker.robots.Flasher. Package Class: Tree: Deprecated.
When the main method is then created, a single call to a method (which i must create myself using stepwise refinement and also contains a parameter) called this.putThings(); The method i am to create should have a single variable parameter to define the size of the squares! Ie a parameter of (4) will make a 4x4 square of 'Things'. The robot should set out the Things one line at a time from left to right!
(once one line is displayed, it should move back to the LHS before displaying the next line) I think i will be able to complete the scenario without problem whenever i am certain on how to create the method with the parameter i have specified. Starting position of the robot will always be the same.
Ie starting at 1, 1. There will always be enough 'things' in the robots backpack to display the two squares.
Anyone have an idea how I would go about setting up this method initially with the variable parameter?
Hi im trying to make a external control trough buttons for becker.robots package. But i have few problems even at this early stage when make a external panel i have to click the start button on the main window where the robot is otherwise the program crashes. Im thinking of either remove the start stop button somehow or inserting my controls inside the robot panel, any ideas? This is the code i have so far i know i have not made the control generic and it will only control the myRobot and the coding is dirty:-) but any suggestions are welcome.