|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Commands.StdCommand
com.planet_ink.coffee_mud.Commands.FactionList
public class FactionList
Portions Copyright (c) 2003 Jeremy Vyska
Portions Copyright (c) 2004-2011 Bo Zimmerman
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
| Field Summary |
|---|
| Fields inherited from class com.planet_ink.coffee_mud.Commands.StdCommand |
|---|
ID |
| Fields inherited from interface com.planet_ink.coffee_mud.Commands.interfaces.Command |
|---|
METAFLAG_AS, METAFLAG_FORCED, METAFLAG_MPFORCED, METAFLAG_ORDER, METAFLAG_POSSESSED, METAFLAG_SNOOPED |
| Constructor Summary | |
|---|---|
FactionList()
|
|
| Method Summary | |
|---|---|
java.lang.String |
calcRangeBar(java.lang.String factionID,
int faction)
|
boolean |
canBeOrdered()
Whether the a group leader or charmer can order their followers to do this command. |
boolean |
execute(MOB mob,
java.util.Vector commands,
int metaFlags)
This method actually performs the command, when the given parsed set of command-line words. |
java.lang.String |
formatFactionLine(java.lang.String name,
int faction)
|
java.lang.String[] |
getAccessWords()
Returns the set of command words, with the most public one first, that are entered by the user to initiate this command. |
| Methods inherited from class com.planet_ink.coffee_mud.Commands.StdCommand |
|---|
actionsCost, checkedActionsCost, combatActionsCost, compareTo, copyOf, executeInternal, ID, initializeClass, newInstance, preExecute, securityCheck, staffCommand |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FactionList()
| Method Detail |
|---|
public java.lang.String[] getAccessWords()
Command
getAccessWords in interface CommandgetAccessWords in class StdCommand
public boolean execute(MOB mob,
java.util.Vector commands,
int metaFlags)
throws java.io.IOException
Command
execute in interface Commandexecute in class StdCommandmob - the mob or player issueing the commandcommands - usually the command words and parameters; a set of stringsmetaFlags - flags denoting how the command is being executed
java.io.IOException - usually means the player has dropped carrierCommand.actionsCost(MOB, List),
Command.securityCheck(MOB)
public java.lang.String formatFactionLine(java.lang.String name,
int faction)
public java.lang.String calcRangeBar(java.lang.String factionID,
int faction)
public boolean canBeOrdered()
Command
canBeOrdered in interface CommandcanBeOrdered in class StdCommand
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||