From: Hendrik <nh...@us...> - 2007-08-11 20:24:16
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/portal In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv22046/src/games/stendhal/server/entity/portal Modified Files: Portal.java Log Message: removed unused deprecated methods Index: Portal.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/portal/Portal.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** Portal.java 31 Jul 2007 23:23:13 -0000 1.20 --- Portal.java 11 Aug 2007 20:24:17 -0000 1.21 *************** *** 25,28 **** --- 25,31 ---- import marauroa.common.game.Definition.Type; + /** + * A portal which teleports the player to another portal if used. + */ public class Portal extends Entity implements UseListener { *************** *** 48,51 **** --- 51,57 ---- } + /** + * Creates a new portal + */ public Portal() { setRPClass("portal"); *************** *** 55,65 **** } - /** - * @deprecated Use setReference(). - */ - @Deprecated - public void setNumber(int number) { - setReference(new Integer(number)); - } /** --- 61,64 ---- *************** *** 74,90 **** } public Object getReference() { return reference; } - /** - * @deprecated Use setDestination(String, Object). - */ - @Deprecated - public void setDestination(String zone, int number) { - setDestination(zone, new Integer(number)); - } ! /* * Set the destination portal zone and reference. The reference should * match the same type/value as that passed to setReference() in the --- 73,87 ---- } + /** + * gets the identifier of this portal + * + * @return identifier + */ public Object getReference() { return reference; } ! /** * Set the destination portal zone and reference. The reference should * match the same type/value as that passed to setReference() in the *************** *** 112,117 **** } - - @Override public String toString() { --- 109,112 ---- *************** *** 122,125 **** --- 117,121 ---- * Use the portal. * + * @param player the Player who wants to use this portal * @return <code>true</code> if the portal worked, * <code>false</code> otherwise. *************** *** 159,162 **** --- 155,164 ---- } + /** + * if this portal is the destination of another portal used + * + * @param user the player who used the other portal teleporting to us + */ + @SuppressWarnings("unused") public void onUsedBackwards(RPEntity user) { // do nothing |