From: Hendrik B. <nh...@us...> - 2012-09-12 18:52:38
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/actions/admin In directory vz-cvs-4.sog:/tmp/cvs-serv20430/src/games/stendhal/server/actions/admin Modified Files: InspectAction.java Log Message: If a SpeakerNPC is inspected, add a line about the current FSM state Index: InspectAction.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/actions/admin/InspectAction.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** InspectAction.java 26 Feb 2012 10:15:12 -0000 1.18 --- InspectAction.java 12 Sep 2012 18:52:36 -0000 1.19 *************** *** 20,23 **** --- 20,24 ---- import games.stendhal.server.entity.item.Item; import games.stendhal.server.entity.item.StackableItem; + import games.stendhal.server.entity.npc.SpeakerNPC; import games.stendhal.server.entity.player.Player; import marauroa.common.game.RPAction; *************** *** 130,133 **** --- 131,137 ---- } } + if (inspected instanceof SpeakerNPC) { + st.append("\nCurrent state: " + ((SpeakerNPC) inspected).getEngine().getCurrentState()); + } } else { st.append("Inspected entity has id " + action.get("target") |