Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
AbstractState Package     Class  Tree  Deprecated  Index  Help   PREV CLASS   NEXT CLASS FRAMES    NO FRAMES     All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD Class AbstractState java.lang.Object | +--AbstractState Direct Known Subclasses: State public abstract class AbstractState extends java.lang.Object Assignment 3 - COMP2011 Session 2, 2003. Superclass of State.java, providing field declarations and toString() method. Don't change this file. (For Stage 1, the only file you need to edit is State.java) Field Summary  int col           Column of agent.  int direction           Direction the agent is pointing.  PointList doors_removed           Linked list of doors previously removed from the environment.  PointList dynamites_removed           Linked list of dynamites previously removed from the environment (in reverse order of removal). static int EAST              boolean have_axe           Whether the agent has an axe.  boolean have_gold           Whether the agent has gold.  boolean have_key           Whether the agent has a key.  java.lang.StringBuffer instructions           String Buffer of instructions previously executed. static int NORTH              int num_dynamites_held           Number of dynamites currently held by the agent.  int row           Row of agent. static int SOUTH              PointList trees_removed           Linked list of trees previously removed from the environment.  PointList walls_removed           Linked list of walls previously removed from the environment. static int WEST               Constructor Summary AbstractState()               Method Summary abstract  boolean apply(int instruction, char[][] initial_map)           This method must be implemented in State.java  java.lang.String toString()           Combine all state information into a printable format.   Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait   Field Detail EAST public static final int EAST See Also: Constant Field Values NORTH public static final int NORTH See Also: Constant Field Values WEST public static final int WEST See Also: Constant Field Values SOUTH public static final int SOUTH See Also: Constant Field Values row public int row Row of agent. col public int col Column of agent. direction public int direction Direction the agent is pointing. have_axe public boolean have_axe Whether the agent has an axe. have_key public boolean have_key Whether the agent has a key. have_gold public boolean have_gold Whether the agent has gold. num_dynamites_held public int num_dynamites_held Number of dynamites currently held by the agent. dynamites_removed public PointList dynamites_removed Linked list of dynamites previously removed from the environment (in reverse order of removal). walls_removed public PointList walls_removed Linked list of walls previously removed from the environment. (in reverse order of removal). trees_removed public PointList trees_removed Linked list of trees previously removed from the environment. (in reverse order of removal). doors_removed public PointList doors_removed Linked list of doors previously removed from the environment. (in reverse order of removal). instructions public java.lang.StringBuffer instructions String Buffer of instructions previously executed. Constructor Detail AbstractState public AbstractState() Method Detail toString public java.lang.String toString() Combine all state information into a printable format. Overrides: toString in class java.lang.Object apply public abstract boolean apply(int instruction, char[][] initial_map) This method must be implemented in State.java Package     Class  Tree  Deprecated  Index  Help   PREV CLASS   NEXT CLASS FRAMES    NO FRAMES     All Classes SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD