Fix grammatically-incorrect comments introduced when renaming Events to Messages.

This commit is contained in:
Major-
2014-08-08 14:20:21 +01:00
parent 027a39aad4
commit f276954998
6 changed files with 9 additions and 12 deletions
+2 -3
View File
@@ -36,8 +36,7 @@ class String
end end
end end
# A CommandListener that executes a Proc object with two arguments: the player # A CommandListener that executes a Proc object with two arguments: the player and the command.
# and the command.
class ProcCommandListener < CommandListener class ProcCommandListener < CommandListener
def initialize(rights, block) def initialize(rights, block)
super(rights) super(rights)
@@ -167,7 +166,7 @@ def on_button(args, proc)
end end
end end
# Defines an action to be taken upon an message. # Defines an action to be taken upon a message.
# The message can either be a symbol with the lower-case underscored class name, or the class itself. # The message can either be a symbol with the lower-case underscored class name, or the class itself.
def on_message(args, proc) def on_message(args, proc)
raise 'Message must have one or two arguments.' unless (1..2).include?(args.length) raise 'Message must have one or two arguments.' unless (1..2).include?(args.length)
@@ -1,8 +1,7 @@
package org.apollo.game.message.handler; package org.apollo.game.message.handler;
/** /**
* Provides operations specific to a {@link MessageHandler} in an {@link MessageHandlerChain}. * Provides operations specific to a {@link MessageHandler} in a {@link MessageHandlerChain}.
* *
* @author Graham * @author Graham
*/ */
@@ -4,7 +4,7 @@ import org.apollo.game.message.Message;
import org.apollo.game.model.Position; import org.apollo.game.model.Position;
/** /**
* An {@link Message sent to the client instructing it to load the specified region. * A {@link Message sent to the client instructing it to load the specified region.
* *
* @author Graham * @author Graham
*/ */
+1 -1
View File
@@ -674,7 +674,7 @@ public final class Player extends Mob {
} }
/** /**
* Sends an {@link Message} to this player. * Sends a {@link Message} to this player.
* *
* @param message The message.. * @param message The message..
*/ */
@@ -30,7 +30,7 @@ public final class MessageHandlerChainParser {
/** /**
* The {@link XmlParser} instance. * The {@link XmlParser} instance.
*/ */
private final XmlParser parser; private final XmlParser parser = new XmlParser();
/** /**
* Creates the message chain parser. * Creates the message chain parser.
@@ -40,7 +40,6 @@ public final class MessageHandlerChainParser {
*/ */
public MessageHandlerChainParser(InputStream is) throws SAXException { public MessageHandlerChainParser(InputStream is) throws SAXException {
this.is = is; this.is = is;
parser = new XmlParser();
} }
/** /**
@@ -51,7 +50,7 @@ public final class MessageHandlerChainParser {
* @throws ClassNotFoundException If a class was not found. * @throws ClassNotFoundException If a class was not found.
* @throws IllegalAccessException If a class was accessed illegally. * @throws IllegalAccessException If a class was accessed illegally.
* @throws InstantiationException If a class could not be instantiated. * @throws InstantiationException If a class could not be instantiated.
* @return An {@link MessageHandlerChainGroup}. * @return A {@link MessageHandlerChainGroup}.
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public MessageHandlerChainGroup parse() throws IOException, SAXException, ClassNotFoundException, public MessageHandlerChainGroup parse() throws IOException, SAXException, ClassNotFoundException,
@@ -4,7 +4,7 @@ import org.apollo.game.message.Message;
import org.apollo.net.codec.game.GamePacket; import org.apollo.net.codec.game.GamePacket;
/** /**
* A {@link MessageDecoder} decodes a {@link GamePacket} into an {@link Message} object which can be processed by the * A {@link MessageDecoder} decodes a {@link GamePacket} into a {@link Message} object which can be processed by the
* server. * server.
* *
* @author Graham * @author Graham