Class ShoutCommand
Object
NormalCommand
TargetCommand
CommunicationCommand
ShoutCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
ScreamCommand
Shout to someone "shout Help!". Or just shout in general. The interesting
part about this command is, because shouting is louder in general than simple
talking, that the shout can be heard in neighbouring rooms.
- Author:
- maartenl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DisplayInterfaceRun an action without a target.protected DisplayInterfaceRun the action command to a target.Methods inherited from class TargetCommand
getTarget, runMethods inherited from class NormalCommand
getAdminService, getChatService, getEventsService, getGuildService, getHelpService, getItemService, getLogService, getPersonService, getRegExpr, parseCommand, parseCommand, setCallback
-
Constructor Details
-
ShoutCommand
-
-
Method Details
-
actionTo
protected DisplayInterface actionTo(User aUser, Person aTarget, String verb, String message) throws MudException Description copied from class:TargetCommandRun the action command to a target.- Overrides:
actionToin classCommunicationCommand- Parameters:
aUser- the one executing the commandaTarget- the target of the commandverb- the verb, usually the first word in the command, for example "cheer".message- the rest of the command, for example "bow to Marvin evilly", will provide "evilly". But "bow to Marvin" will return a null pointer.- Returns:
- something to display
- Throws:
MudException
-
action
Description copied from class:TargetCommandRun an action without a target.- Overrides:
actionin classCommunicationCommand- Parameters:
aUser- the one executing the commandverb- the verb, usually the first word in the command, for example "bow".message- the rest of the command, for example "bow evilly" would return "evilly". "bow" would return null.- Returns:
- something to display
- Throws:
MudException
-
getCommType
- Specified by:
getCommTypein classCommunicationCommand
-