- 133
- 0
- 约3.9万字
- 约 31页
- 2015-12-30 发布于河南
- 举报
《robocode_API中文参考(java)》.pdf
robocode 部分API 中文参考
ahead 向前
public void ahead(double distance)
Immediately moves your robot ahead (forward) by distance measured in pixels.
马上将你的机器人向前移动 以 distance 指定的 多少个像素
This call executes immediately, and does not return until it is complete, i.e. when the remaining
distance to move is 0.
这个函数会马上执行,并且直到完成了任务才返回,比如,当距离已前进完时。
If the robot collides with a wall, the move is complete, meaning that the robot will not move any
further. If the robot collides with another robot, the move is
complete if you are heading toward the other robot.
当机器人撞到墙时,动作也是完成了,意味着此时
原创力文档

文档评论(0)