📄 turtle.java
字号:
/* * This code is from the book: * * Winder, R and Roberts, G (2000) Developing Java * Software, second edition, John Wiley & Sons. * * It is copyright (c) 2000 Russel Winder and Graham Roberts. */package SimFrameWork ;/** * This class represents the basic properties of a turtle in a * simulation. * * @version 2.0 March 1999 * @author Graham Roberts */public abstract class Turtle { /** * A turtle must be located on a patch when constructed. * * @param p patch turtle is located on. */ public Turtle(Patch p) { location = p ; } /** * Update turtle state one time state. */ public abstract void update() ; /** * Patch where turtle is currently located. */ protected Patch location ;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -