Package com.smartfoxserver.mmo
Interface IMMOItem
- All Known Implementing Classes:
BaseMMOItem,MMOItem
public interface IMMOItem
MMOItems are generic objects that can be placed in an MMORoom to represent
interactive or non-interactive items as part of the virtual world, such as obstacles, doors, collectibles,
etc...
MMOItems gets automatically updated via the PROXIMITY_LIST_UPDATE even and can be assigned custom properties by
using MMOItemVariable;
For more info see the tutorials in our online documentation
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintgetId()The MMOItem IDgetVariable(String varName) Obtain a variable from the MMOItem via its nameGet a list of all variables attached to the MMOItemvoidremoveVariable(String varName) voidvoidsetVariables(List<IMMOItemVariable> varList)
-
Method Details
-
getId
int getId()The MMOItem ID- Returns:
- the unique Item ID
-
getVariable
Obtain a variable from the MMOItem via its name- Parameters:
varName- the variable name- Returns:
- the variable object
-
getVariables
List<IMMOItemVariable> getVariables()Get a list of all variables attached to the MMOItem- Returns:
- all variables attached to the MMOItem
-
setVariable
- See Also:
- Internal
-
setVariables
- Internal
- Instead use
SFSMMOApi.setMMOItemVariables(BaseMMOItem, List)
-
removeVariable
- Internal
- Instead use
SFSMMOApi.setMMOItemVariables(BaseMMOItem, List)by setting the variable(s) to be removed to NULL
-
toSFSArray
ISFSArray toSFSArray()- Internal
-