📄 automotiverobotbuilder.java
字号:
import java.util.*;
public class AutomotiveRobotBuilder implements RobotBuilder
{
AutomotiveRobotBuildable robot;
ArrayList actions;
public AutomotiveRobotBuilder()
{
robot = new AutomotiveRobotBuildable();
actions = new ArrayList();
}
public void addStart()
{
actions.add(new Integer(1));
}
public void addGetParts()
{
actions.add(new Integer(2));
}
public void addAssemble()
{
actions.add(new Integer(3));
}
public void addTest()
{
actions.add(new Integer(4));
}
public void addStop()
{
actions.add(new Integer(5));
}
public RobotBuildable getRobot()
{
robot.loadActions(actions);
return robot;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -