[mud4j-commit] SF.net SVN: mud4j: [137] trunk/mud4j-core/src/java/net/sf/mud4j/effect/ Effect.java
Status: Pre-Alpha
Brought to you by:
mpurland
|
From: <mpu...@us...> - 2007-06-14 03:28:02
|
Revision: 137
http://mud4j.svn.sourceforge.net/mud4j/?rev=137&view=rev
Author: mpurland
Date: 2007-06-13 20:27:57 -0700 (Wed, 13 Jun 2007)
Log Message:
-----------
Format the class.
Modified Paths:
--------------
trunk/mud4j-core/src/java/net/sf/mud4j/effect/Effect.java
Modified: trunk/mud4j-core/src/java/net/sf/mud4j/effect/Effect.java
===================================================================
--- trunk/mud4j-core/src/java/net/sf/mud4j/effect/Effect.java 2007-06-03 01:53:22 UTC (rev 136)
+++ trunk/mud4j-core/src/java/net/sf/mud4j/effect/Effect.java 2007-06-14 03:27:57 UTC (rev 137)
@@ -20,40 +20,45 @@
* Effect to provide addon effects for specific objects.
*
* @todo use decorator pattern with effects with characters and items and others
- *
* @author Matthew Purland
*/
public interface Effect {
/**
* Apply effect on the target.
+ *
* @param target Target object to apply effect on.
* @throws EffectException in case of an apply failure.
*/
public void apply() throws EffectException;
-
+
/**
* Undo the effect from the target.
+ *
* @param target Target object to remove effect from.
* @throws EffectException in case of an undo failure.
*/
public void undo() throws EffectException;
-
+
/**
* Determine if the effect has expired duration.
+ *
* @return Returns whether the effect has expired yet.
*/
public boolean hasExpired();
-
+
/**
- * Determine if the effect is permanent. Permanent status means
- * that the effect cannot be removed.
- * @return Retruns whether the effect is a permanent effect and cannot expire.
+ * Determine if the effect is permanent. Permanent status means that the
+ * effect cannot be removed.
+ *
+ * @return Retruns whether the effect is a permanent effect and cannot
+ * expire.
*/
public boolean isPermanent();
-
+
/**
* Get name of the effect.
+ *
* @return Returns the name of the effect.
*/
public String getName();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|