|
|||||||||
| 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 | |
|---|---|
java.lang.String |
baseName()
Base name is the name of the social's command word. |
boolean |
invoke(MOB mob,
java.util.Vector 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. |
CMMsg |
makeChannelMsg(MOB mob,
int channelInt,
java.lang.String channelName,
java.util.Vector 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.Vector commands,
java.lang.String I3channelName,
boolean makeTarget)
Manufactures a proper message that represents executing this social as an action |
java.lang.String |
MSPfile()
Returns the name of the MSP sound file associated with this social. |
int |
othersCode()
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 |
See_when_no_target()
See_when_no_target: what the player sees when this social is used targeted, but the target is not available. |
void |
setMSPfile(java.lang.String newFile)
Sets the name of the MSP sound file associated with this social. |
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 |
setSee_when_no_target(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 |
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 |
setTarget_sees(java.lang.String str)
Target_sees: what the target of this social sees when social is used on them. |
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 |
setThird_party_sees(java.lang.String str)
Third_party_sees: what everyone but the player and their target sees when a player uses this social. |
void |
setYou_see(java.lang.String str)
You_see: what the player themself sees when they use this social. |
int |
sourceCode()
The official CoffeeMud message code used as the source code for this social, which reflects what the player is doing. |
java.lang.String |
Target_sees()
Target_sees: what the target of this social sees when social is used on them. |
boolean |
targetable(Environmental E)
Whether this social variation can be targeted. |
int |
targetCode()
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 |
Third_party_sees()
Third_party_sees: what everyone but the player and their target sees when a player uses this social. |
java.lang.String |
You_see()
You_see: what the player themself sees when they use this social. |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
description, displayText, expirationDate, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, 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 You_see()
setYou_see(String)void setYou_see(java.lang.String str)
str - what the player themself sees when they use this social.You_see()java.lang.String Third_party_sees()
setThird_party_sees(String)void setThird_party_sees(java.lang.String str)
str - the string everyone else seesThird_party_sees()java.lang.String Target_sees()
setTarget_sees(String)void setTarget_sees(java.lang.String str)
str - what the target of this social sees when social is used on themTarget_sees()java.lang.String See_when_no_target()
setSee_when_no_target(String)void setSee_when_no_target(java.lang.String str)
str - the string seen by the player when the target has leftSee_when_no_target()int sourceCode()
setSourceCode(int),
CMMsg.MSG_SPEAK,
CMMsg.MSG_HANDS,
CMMsg.MSG_NOISE,
CMMsg.MSG_NOISYMOVEMENTvoid setSourceCode(int code)
code - the CMMsg social code, fully formedsourceCode(),
CMMsg.MSG_SPEAK,
CMMsg.MSG_HANDS,
CMMsg.MSG_NOISE,
CMMsg.MSG_NOISYMOVEMENTint othersCode()
setOthersCode(int),
CMMsg.MSG_SPEAK,
CMMsg.MSG_HANDS,
CMMsg.MSG_NOISE,
CMMsg.MSG_NOISYMOVEMENT,
CMMsg.MSG_OK_VISUALvoid setOthersCode(int code)
code - the CMMsg social code, fully formedothersCode(),
CMMsg.MSG_SPEAK,
CMMsg.MSG_HANDS,
CMMsg.MSG_NOISE,
CMMsg.MSG_NOISYMOVEMENT,
CMMsg.MSG_OK_VISUALint targetCode()
setTargetCode(int),
CMMsg.MSG_SPEAK,
CMMsg.MSG_HANDS,
CMMsg.MSG_NOISE,
CMMsg.MSG_NOISYMOVEMENT,
CMMsg.MSG_OK_VISUALvoid setTargetCode(int code)
code - the CMMsg social code, fully formedtargetCode(),
CMMsg.MSG_SPEAK,
CMMsg.MSG_HANDS,
CMMsg.MSG_NOISE,
CMMsg.MSG_NOISYMOVEMENT,
CMMsg.MSG_OK_VISUALboolean targetable(Environmental E)
E - The object to check to see if this is targetable against.
Environmental.Name()java.lang.String MSPfile()
setMSPfile(String)void setMSPfile(java.lang.String newFile)
newFile - the msp sound file nameMSPfile()
boolean invoke(MOB mob,
java.util.Vector 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.Vector 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, Vector, String, boolean)
CMMsg makeMessage(MOB mob,
java.lang.String str,
java.lang.String end,
int srcMask,
int fullCode,
java.util.Vector 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, Vector, boolean)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||