|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Social
Although at one time a simple public variable object, the Social became an environmental when it became import to be able to pass it as a tool of a message for various purposes. It still retains much of its original awkwardness as can be seen in the method names. Today the social is still mostly a variable storage unit, with a few methods to make use of those variables. A social object exists not simply as one for each social command (smile, wiggy) but one for each social variation (smile, smile self, smile bob). The Name() field holds the full unique name of each social object, with ID only having "DefaultSocial".
Environmental.Name()
,
Managed by the SocialsList library.
,
Social
,
SocialsList
Field Summary |
---|
Method Summary | |
---|---|
double |
actionsCost(MOB mob,
java.util.List<java.lang.String> cmds)
Returns the number of actions required to completely activate this social. |
java.lang.String |
argumentName()
Argument name is the social's optional remaining argument. |
java.lang.String |
baseName()
Base name is the name of the social's command word. |
double |
checkedActionsCost(MOB mob,
java.util.List<java.lang.String> cmds)
Returns the number of actions required to completely activate this social. |
double |
combatActionsCost(MOB mob,
java.util.List<java.lang.String> cmds)
Returns the number of actions required to completely activate this social. |
java.lang.String |
getFailedTargetMessage()
See_when_no_target: what the player sees when this social is used targeted, but the target is not available. |
int |
getOthersCode()
The official CoffeeMud message code used as the others code for this social, which reflects what the player appears to be doing. |
java.lang.String |
getOthersMessage()
Third_party_sees: what everyone but the player and their target sees when a player uses this social. |
java.lang.String |
getSoundFile()
Returns the name of the MSP sound file associated with this social. |
int |
getSourceCode()
The official CoffeeMud message code used as the source code for this social, which reflects what the player is doing. |
java.lang.String |
getSourceMessage()
You_see: what the player themself sees when they use this social. |
int |
getTargetCode()
The official CoffeeMud message code used as the target code for this social, which reflects what is being done to the target. |
java.lang.String |
getTargetMessage()
Target_sees: what the target of this social sees when social is used on them. |
boolean |
invoke(MOB mob,
java.util.List<java.lang.String> commands,
Physical target,
boolean auto)
Executes this social by the given mob, using the target provided, with help from the provided command line strings in a vector, and with override message code flag. |
boolean |
isTargetable()
Returns whether targetName is an -NAME> code, meaning it is targettable at a person or mob or something. |
CMMsg |
makeChannelMsg(MOB mob,
int channelInt,
java.lang.String channelName,
java.util.List<java.lang.String> commands,
boolean makeTarget)
Manufactures a proper channel message that represents executing this social over a public chat channel. |
CMMsg |
makeMessage(MOB mob,
java.lang.String str,
java.lang.String end,
int srcMask,
int fullCode,
java.util.List<java.lang.String> commands,
java.lang.String I3channelName,
boolean makeTarget)
Manufactures a proper message that represents executing this social as an action |
void |
setFailedMessage(java.lang.String str)
See_when_no_target: what the player sees when this social is used targeted, but the target is not available. |
void |
setOthersCode(int code)
Sets the official CoffeeMud message code used as the others code for this social, which reflects what the player appears to be doing. |
void |
setOthersMessage(java.lang.String str)
Third_party_sees: what everyone but the player and their target sees when a player uses this social. |
void |
setSoundFile(java.lang.String newFile)
Sets the name of the MSP sound file associated with this social. |
void |
setSourceCode(int code)
Sets the official CoffeeMud message code used as the source code for this social, which reflects what the player is doing. |
void |
setSourceMessage(java.lang.String str)
You_see: what the player themself sees when they use this social. |
void |
setTargetCode(int code)
Sets the official CoffeeMud message code used as the target code for this social, which reflects what is being done to the target. |
void |
setTargetMessage(java.lang.String str)
Target_sees: what the target of this social sees when social is used on them. |
java.lang.String |
tailName()
Tail name is the full remainder of the social's target AND optional argument(s). |
boolean |
targetable(Environmental E)
Whether this social variation can be targeted. |
java.lang.String |
targetName()
Target name is the social's target argument only, such as |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
---|
getTickStatus, name, tick |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
---|
affectCharState, affectCharStats, affectPhyStats |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
---|
executeMsg, okMessage |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
---|
amDestroyed, destroy, isSavable, setSavable |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, ID, initializeClass, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
Method Detail |
---|
java.lang.String baseName()
java.lang.String tailName()
java.lang.String targetName()
boolean isTargetable()
java.lang.String argumentName()
java.lang.String getSourceMessage()
setSourceMessage(String)
void setSourceMessage(java.lang.String str)
str
- what the player themself sees when they use this social.getSourceMessage()
java.lang.String getOthersMessage()
setOthersMessage(String)
void setOthersMessage(java.lang.String str)
str
- the string everyone else seesgetOthersMessage()
java.lang.String getTargetMessage()
setTargetMessage(String)
void setTargetMessage(java.lang.String str)
str
- what the target of this social sees when social is used on themgetTargetMessage()
java.lang.String getFailedTargetMessage()
setFailedMessage(String)
void setFailedMessage(java.lang.String str)
str
- the string seen by the player when the target has leftgetFailedTargetMessage()
int getSourceCode()
setSourceCode(int)
,
CMMsg.MSG_SPEAK
,
CMMsg.MSG_HANDS
,
CMMsg.MSG_NOISE
,
CMMsg.MSG_NOISYMOVEMENT
void setSourceCode(int code)
code
- the CMMsg social code, fully formedgetSourceCode()
,
CMMsg.MSG_SPEAK
,
CMMsg.MSG_HANDS
,
CMMsg.MSG_NOISE
,
CMMsg.MSG_NOISYMOVEMENT
int getOthersCode()
setOthersCode(int)
,
CMMsg.MSG_SPEAK
,
CMMsg.MSG_HANDS
,
CMMsg.MSG_NOISE
,
CMMsg.MSG_NOISYMOVEMENT
,
CMMsg.MSG_OK_VISUAL
void setOthersCode(int code)
code
- the CMMsg social code, fully formedgetOthersCode()
,
CMMsg.MSG_SPEAK
,
CMMsg.MSG_HANDS
,
CMMsg.MSG_NOISE
,
CMMsg.MSG_NOISYMOVEMENT
,
CMMsg.MSG_OK_VISUAL
int getTargetCode()
setTargetCode(int)
,
CMMsg.MSG_SPEAK
,
CMMsg.MSG_HANDS
,
CMMsg.MSG_NOISE
,
CMMsg.MSG_NOISYMOVEMENT
,
CMMsg.MSG_OK_VISUAL
void setTargetCode(int code)
code
- the CMMsg social code, fully formedgetTargetCode()
,
CMMsg.MSG_SPEAK
,
CMMsg.MSG_HANDS
,
CMMsg.MSG_NOISE
,
CMMsg.MSG_NOISYMOVEMENT
,
CMMsg.MSG_OK_VISUAL
boolean targetable(Environmental E)
E
- The object to check to see if this is targetable against.
Environmental.Name()
java.lang.String getSoundFile()
setSoundFile(String)
void setSoundFile(java.lang.String newFile)
newFile
- the msp sound file namegetSoundFile()
boolean invoke(MOB mob, java.util.List<java.lang.String> commands, Physical target, boolean auto)
mob
- the source of the social actioncommands
- the vector of stringstarget
- the target of the socialauto
- true to override physical constraints of the source or target
CMMsg makeChannelMsg(MOB mob, int channelInt, java.lang.String channelName, java.util.List<java.lang.String> commands, boolean makeTarget)
mob
- the mob doing the socialchannelInt
- the channel int representing which chat channelchannelName
- the channel name of the chat channelcommands
- the commands as a string vector entered by the usermakeTarget
- true to create a fake target, or false to find a real one.
CMMsg
,
makeMessage(MOB, String, String, int, int, List, String, boolean)
CMMsg makeMessage(MOB mob, java.lang.String str, java.lang.String end, int srcMask, int fullCode, java.util.List<java.lang.String> commands, java.lang.String I3channelName, boolean makeTarget)
mob
- the mob doing the socialstr
- the str an optional "header" string for the msg, usually mxp relatedend
- the end an optional "trailer" string for the msg, usually mxp relatedsrcMask
- the src mask to logically OR with the generated message source codefullCode
- the override target and others code from the one in this socialcommands
- the commands as a string vector entered by the userI3channelName
- the i3channel name or null if n/amakeTarget
- true to manufacture a target, or false to use a real one
CMMsg
,
makeChannelMsg(MOB, int, String, List, boolean)
double actionsCost(MOB mob, java.util.List<java.lang.String> cmds)
mob
- the mob executing the social, if anycmds
- the parameters to be passed to the social, if any
combatActionsCost(MOB, List)
,
checkedActionsCost(MOB, List)
double combatActionsCost(MOB mob, java.util.List<java.lang.String> cmds)
mob
- the mob executing the social, if anycmds
- the parameters to be passed to the social, if any
actionsCost(MOB, List)
,
checkedActionsCost(MOB, List)
double checkedActionsCost(MOB mob, java.util.List<java.lang.String> cmds)
mob
- the mob executing the social, if anycmds
- the parameters to be passed to the social, if any
combatActionsCost(MOB, List)
,
actionsCost(MOB, List)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |