实现火星车,全部由java写成

源代码在线查看: left.java

软件大小: 645 K
上传用户: Butterflies
关键词: java 火星车
下载地址: 免注册下载 普通下载 VIP

相关代码

				package cn.nasa;
				
				public class Left implements IAction {
					private Direction direction;
					private Coordinate coordinate;
				
					@Override
					public Object exec() {
						direction=direction.TurnLeft();
						return direction;
					}
				
					@Override
					public void setcoordinate(Coordinate coordinate) {
						this.coordinate=coordinate;
					}
				
					@Override
					public void setdirection(Direction direction) {
						this.direction=direction;
					}
				
				}
							

相关资源