Package | Description |
---|---|
org.elkoserver.server.context |
The Elko Context Server.
|
org.elkoserver.server.context.caps |
A package of mods related to using capability security patterns in Elko
Context Server applications.
|
org.elkoserver.server.context.mods |
A package of generally useful mods and related objects.
|
org.elkoserver.server.context.test | |
org.made.neohabitat | |
org.made.neohabitat.mods |
Modifier and Type | Method and Description |
---|---|
User |
EphemeralUserFactory.provideUser(Contextor contextor,
Connection connection,
JSONObject param,
String contextRef,
String contextTemplate)
Synthesize a user object.
|
User |
User.user()
Obtain the user this object is currently associated with.
|
User |
Item.user()
Obtain the user within which this item is contained, regardless of how
deeply nested in containers it might be.
|
User |
Context.user()
Obtain the user this object is currently contained by.
|
abstract User |
BasicObject.user()
Obtain the user within which this object is contained, regardless of how
deeply nested in containers it might be.
|
Modifier and Type | Method and Description |
---|---|
Iterator<User> |
Context.userIterator()
Obtain an iterator over the users currently in this context.
|
Modifier and Type | Method and Description |
---|---|
void |
Item.delete(User from)
Message handler for the 'delete' message.
|
protected void |
Mod.ensureHolding(User who)
Guard function to guarantee that an operation being attempted by a user
is being applied to an object that that user is holding.
|
protected void |
Mod.ensureInContext(User who)
Guard function to guarantee that an operation being attempted by a user
on an object that is contained by the user's context.
|
protected void |
Mod.ensureReachable(User who)
Guard function to guarantee that an operation being attempted by a user
is being applied to an object that that user is allowed to reach (either
because it is in the context or because the user is holding it).
|
protected void |
Mod.ensureSameContext(User who)
Guard function to guarantee that an operation being attempted by a user
on an object is taking place in the same context as the object.
|
protected void |
Mod.ensureSameUser(User who)
Guard function to guarantee that an operation being attempted by a user
is being applied to that same user.
|
static JSONLiteral |
Msg.msgMake(Referenceable target,
BasicObject obj,
User maker)
Create a 'make' message.
|
static JSONLiteral |
Msg.msgMake(Referenceable target,
BasicObject obj,
User maker,
boolean you,
String sess)
Create a 'make' message.
|
void |
UserWatcher.noteUserArrival(User who)
Do whatever you want when somebody arrives.
|
void |
UserWatcher.noteUserDeparture(User who)
Do whatever you want when somebody leaves.
|
Modifier and Type | Method and Description |
---|---|
void |
Definer.define(User from,
OptString into,
OptString ref,
BasicObject obj)
Message handler for a 'define' message.
|
void |
Cap.delete(User from)
Handle a 'delete' message.
|
void |
Cap.ensureValid(User from)
Guard function to guarantee that an operation being attempted by a user
is being applied to a capability that is actually available to that
user.
|
void |
Cap.setlabel(User from,
String label)
Handle a 'setlabel' message.
|
void |
Cap.spawn(User from,
OptString dest,
OptBoolean transferrable,
OptBoolean deleteable,
OptInteger duration,
OptInteger expiration)
Handle a 'spawn' message.
|
void |
Cap.transfer(User from,
String destRef)
Handle a 'transfer' message.
|
Modifier and Type | Method and Description |
---|---|
void |
Census.census(User from)
Message handler for the 'census' message.
|
void |
Dictionary.delvar(User from,
String[] names)
Message handler for the 'delvar' message.
|
void |
Note.edit(User from,
OptString text,
StyleDesc style)
Message handler for the 'edit' message.
|
void |
NoteMaker.makenote(User from,
OptString into,
int left,
int top,
int width,
int height,
String text,
StyleDesc style)
Message handler for the 'makenote' message.
|
void |
Cartesian.move(User from,
OptString into,
int left,
int top)
Message handler for the 'move' message.
|
void |
PrivateChat.push(User from,
String url,
OptString frame,
OptString features)
Message handler for the 'push' message.
|
void |
Chat.push(User from,
String url,
OptString frame,
OptString features)
Message handler for the 'push' message.
|
void |
PrivateChat.say(User from,
String text)
Message handler for the 'say' message.
|
void |
Chat.say(User from,
String text)
Message handler for the 'say' message.
|
void |
Dictionary.setvar(User from,
String[] names,
String[] values)
Message handle for the 'setvar' message.
|
void |
TalkPrefs.style(User from,
OptString color,
OptString backgroundColor,
OptString icon,
OptString textStyle)
Message handler for the 'style' message.
|
Modifier and Type | Method and Description |
---|---|
void |
EchoMod.echo(User from,
String text)
Message handler for the 'echo' message.
|
void |
GateController.gate(User from,
boolean open,
OptString optReason)
Message handler for the 'gate' message.
|
void |
Counter.inc(User from)
Message handler for the 'inc' message.
|
void |
ZMQSendTester.log(User from,
String str)
Handle the 'log' verb.
|
void |
Die.roll(User from)
Message handler for the 'roll' message.
|
void |
EchoMod.status(User from)
Message handler for the 'status' message.
|
Modifier and Type | Method and Description |
---|---|
void |
HabitatVerbs.ASK(User from) |
void |
HabitatMod.ASK(User from)
Verb (Illegal): This shouldn't get here.
|
Avatar |
HabitatMod.avatar(User user)
Replaces globals avatar/avatarptr
|
void |
Container.close_container(User from)
Sends CONNECTION_JSON messages to destroy items (client side) that are now invisible in the closed container
|
void |
Openable.CLOSECONTAINER(User from)
Verb (Openable): Close [and lock] this container.
|
void |
HabitatVerbs.DO(User from) |
void |
HabitatMod.DO(User from)
Verb (Illegal): This shouldn't get here.
|
boolean |
HabitatMod.elsewhere(HabitatMod object,
User user)
elsewhere -- Return true iff the object is not near the Avatar (i.e., not
adjacent and not in hand).
|
void |
Openable.generic_CLOSECONTAINER(User from)
Attempt to close [and lock] this container.
|
void |
HabitatMod.generic_GET(User from)
Almost all efforts to GET a Habitat object go through this code.
|
void |
HabitatMod.generic_HELP(User from)
Most of the Habitat classes only need simple strings for their HELP messages, so
this generic implementation provides that.
|
void |
Switch.generic_OFF(User from)
Change the state of a switch to OFF, and if it's a lighting source,
update the Region lighting level.
|
void |
Switch.generic_ON(User from)
Change the state of a switch to ON, and if it's a lighting source,
update the Region lighting level.
|
void |
Openable.generic_OPENCONTAINER(User from)
Attempt to open [and lock] this container.
|
void |
HabitatMod.generic_PUT(User from)
Simple 0-parameter PUT version provided to allow for JSON interface testing.
|
void |
HabitatMod.generic_PUT(User from,
Container cont,
int pos_x,
int pos_y,
int obj_orient)
Most attempt to PUT an item go through this code.
|
void |
HabitatMod.generic_PUT(User from,
int containerNoid,
int x,
int y,
int orientation)
Put this into a new container specified by noid.
|
void |
HabitatMod.generic_THROW(User from,
HabitatMod target,
int target_x,
int target_y)
Throw this across the room, onto some kind of surface.
|
void |
HabitatMod.generic_THROW(User from,
int target,
int target_x,
int target_y)
Throw this across the room, onto some kind of surface, by noid.
|
void |
Container.get_container_contents(User from)
It sends a newly opened container's contents.
|
void |
HabitatVerbs.GET(User from) |
void |
HabitatMod.GET(User from)
Verb (Generic): Pick this item up.
|
void |
Magical.god_tool_revisited(User from,
String request_string)
CALLBACK for the GOD TOOL - it must reconstruct the context for interpretation from an earlier request.
|
void |
Magical.HELP(User from)
Verb (Magical): Reply with the HELP for this magical item.
|
void |
HabitatVerbs.HELP(User from) |
void |
HabitatMod.HELP(User from)
Verb (Generic): Get HELP for this.
|
boolean |
HabitatMod.here(HabitatMod object,
User user)
here -- Return true iff the given object is exactly where the Avatar is.
|
void |
HabitatMod.illegal(User from)
Dump a trace message that an illegal request was received into the log.
|
void |
HabitatMod.illegal(User from,
String request)
Dump a trace message that an illegal request was received into the log.
|
void |
Openable.lock_HELP(User from,
String item_name,
int key_number,
boolean[] open_flags)
A generic HELP verb for containers that can open/close/lock/unlock.
|
void |
Magical.MAGIC(User from,
OptInteger target)
Verb (Magical): Activate any magic on this, if there are charges left.
|
void |
HabitatMod.object_say(User to,
int noid,
String text)
An object sends a string message to a specific user
|
void |
HabitatMod.object_say(User to,
String text)
An object sends a string message to a specific user
|
void |
Openable.OPENCONTAINER(User from)
Verb (Openable): Open [and unlock] this container.
|
void |
HabitatVerbs.PUT(User from,
OptInteger containerNoid,
OptInteger x,
OptInteger y,
OptInteger orientation) |
void |
HabitatMod.PUT(User from,
OptInteger containerNoid,
OptInteger x,
OptInteger y,
OptInteger orientation)
Verb (Generic): Put this item into some container or on the ground.
|
void |
HabitatVerbs.RDO(User from) |
void |
HabitatMod.RDO(User from)
Verb (Illegal): This shouldn't get here.
|
void |
HabitatMod.send_neighbor_msg(User from,
int noid,
String op)
Sends a ASYNCHRONOUS message to all the neighbors (other user/connections) in a region.
|
void |
HabitatMod.send_neighbor_msg(User from,
int noid,
String op,
String attrib,
int value)
Sends a ASYNCHRONOUS message to all the neighbors (other user/connections) in a region with an additional parameters.
|
void |
HabitatMod.send_neighbor_msg(User from,
int noid,
String op,
String a1,
int v1,
String a2,
int v2)
Sends a ASYNCHRONOUS message to all the neighbors (other user/connections) in a region with additional parameters.
|
void |
HabitatMod.send_neighbor_msg(User from,
int noid,
String op,
String a1,
int v1,
String a2,
int v2,
String a3,
int v3)
Sends a ASYNCHRONOUS message to all the neighbors (other user/connections) in a region with additional parameters.
|
void |
HabitatMod.send_neighbor_msg(User from,
int noid,
String op,
String a1,
int v1,
String a2,
int v2,
String a3,
int v3,
String a4,
int v4)
Sends a ASYNCHRONOUS message to all the neighbors (other user/connections) in a region with additional parameters.
|
void |
HabitatMod.send_neighbor_msg(User from,
int noid,
String op,
String attrib,
String value)
Sends a ASYNCHRONOUS message to all the neighbors (other user/connections) in a region with an additional string.
|
void |
HabitatMod.send_neighbor_msg(User from,
String op)
Sends a ASYNCHRONOUS message to all the neighbors (other user/connections) in a region.
|
void |
HabitatMod.send_private_msg(User from,
int noid,
User to,
String op)
Send a private message to a specified user-connection.
|
void |
HabitatMod.send_private_msg(User from,
int noid,
User to,
String op,
String text)
Send a single-string private message to a specified user-connection.
|
void |
HabitatMod.send_private_msg(User from,
int noid,
User to,
String op,
String attribute,
int value)
Send a single-byte private message to a specified user-connection.
|
void |
HabitatMod.send_private_msg(User from,
int noid,
User to,
String op,
String a1,
int v1,
String a2,
int v2)
Send a private message with additional parameters to a specified user-connection.
|
void |
HabitatMod.send_private_msg(User from,
int noid,
User to,
String op,
String a1,
int v1,
String a2,
int v2,
String a3,
int v3)
Send a private message with additional parameters to a specified user-connection.
|
void |
HabitatMod.send_private_msg(User from,
int noid,
User to,
String op,
String a1,
int v1,
String a2,
int v2,
String a3,
int v3,
String a4,
int v4)
Send a private message with additional parameters to a specified user-connection.
|
void |
HabitatMod.send_private_msg(User from,
int noid,
User to,
String op,
String attribute,
String value)
Send a single-string private message to a specified user-connection.
|
void |
HabitatMod.send_reply_err(User from,
int noid,
int err)
Send simple SYNCHRONOUS reply indicating success or failure.
|
void |
HabitatMod.send_reply_error(User from)
Send simple SYNCHRONOUS reply indicating failure.
|
void |
HabitatMod.send_reply_error(User from,
int noid)
Send simple SYNCHRONOUS reply indicating failure.
|
void |
HabitatMod.send_reply_msg(User from,
int noid)
Sends a SYNCHRONOUS (client is waiting) reply message using the minimum arguments.
|
void |
HabitatMod.send_reply_msg(User from,
int noid,
String attrib,
int value)
Sends a SYNCHRONOUS (client is waiting) reply message, with addition attributes/values.
|
void |
HabitatMod.send_reply_msg(User from,
int noid,
String a1,
int v1,
String a2,
int v2)
Sends a SYNCHRONOUS (client is waiting) reply message, with addition attributes/values.
|
void |
HabitatMod.send_reply_msg(User from,
int noid,
String a1,
int v1,
String a2,
int v2,
String a3,
int v3)
Sends a SYNCHRONOUS (client is waiting) reply message, with addition attributes/values.
|
void |
HabitatMod.send_reply_msg(User from,
int noid,
String a1,
int v1,
String a2,
int v2,
String a3,
int v3,
String a4,
int v4)
Sends a SYNCHRONOUS (client is waiting) reply message, with addition attributes/values.
|
void |
HabitatMod.send_reply_msg(User from,
int noid,
String attrib,
String value)
Sends a SYNCHRONOUS (client is waiting) reply message, with additional String value.
|
void |
HabitatMod.send_reply_msg(User from,
String text)
Sends a SYNCHRONOUS (client is waiting) string-only reply message inferring this.noid.
|
void |
HabitatMod.send_reply_success(User from)
Send simple SYNCHRONOUS reply indicating success.
|
void |
HabitatMod.send_reply_success(User from,
int noid)
Send simple SYNCHRONOUS reply indicating success.
|
void |
HabitatMod.TEST(User from)
Verb (Debug): Test rigging for Elko Habitat developers to write trace messages into the log
without actually doing anything
|
void |
HabitatVerbs.THROW(User from,
int target,
int x,
int y) |
void |
HabitatMod.THROW(User from,
int target,
int x,
int y)
Verb (Generic): Throw this across the Region
|
void |
HabitatMod.unsupported_reply(User from,
int noid,
String text)
Temporary scaffolding for incremental development of the server.
|
Modifier and Type | Method and Description |
---|---|
void |
Avatar.avatar_IDENTIFY(User from)
Alternate interface to avatar_IDENTIFY, passing this.noid as the missing second argument.
|
void |
Avatar.avatar_IDENTIFY(User from,
int replyNoid)
A different message is returned depending on if this avatar is
the "from" user or another, the message returned will vary.
|
void |
Avatar.avatar_NEWREGION(User from,
int direction,
int passage_id) |
void |
Bag.bag_HELP(User from)
Reply with HELP for Bags
|
void |
Box.box_HELP(User from)
Reply with HELP for Boxes
|
void |
Avatar.DISCORPORATE(User from)
Verb (Specific): TODO Turn to/from being a ghost.
|
void |
Avatar.ESP(User from)
Verb (Specific): TODO Send a point-to-point message to another user/avatar.
|
void |
Region.FINGER_IN_QUE(User from)
The client is slow and this might provide an advantage to others seeing a new avatar before it can
react.
|
void |
Flashlight.flashlight_HELP(User from)
Reply with HELP for Flashlights
|
void |
Avatar.FNKEY(User from,
OptInteger key,
OptInteger target)
Verb (Specific): TODO Deal with FN Key presses.
|
void |
Knick_knack.GET(User from)
Verb (Generic): Pick this item up.
|
void |
Key.GET(User from)
Verb (Generic): Pick this item up.
|
void |
Head.GET(User from)
Verb (Generic): Pick this item up.
|
void |
Flashlight.GET(User from)
Verb (Generic): Pick this item up.
|
void |
Box.GET(User from)
Verb (Generic): Pick this item up.
|
void |
Bag.GET(User from)
Verb (Generic): Pick this item up.
|
void |
Avatar.GRAB(User from)
Verb (Specific): TODO Grabbing from another avatar.
|
void |
Avatar.HAND(User from)
Verb (Specific): TODO Handing in-hand item to another avatar.
|
void |
Head.head_HELP(User from)
Reply with HELP for Heads
|
void |
Head.head_REMOVE(User from)
Verb (Specific): Move this head from my avatar's HEAD to the HANDS slot.
|
void |
Head.head_WEAR(User from)
Move this head from my avatar's HANDS to the HEAD slot.
|
void |
Knick_knack.HELP(User from)
Verb (Specific): Get HELP for this.
|
void |
Head.HELP(User from)
Verb (Specific): Get HELP for this.
|
void |
Flashlight.HELP(User from)
Verb (Specific): Get HELP for this.
|
void |
Box.HELP(User from)
Verb (Specific): Get HELP for this.
|
void |
Bag.HELP(User from)
Verb (Specific): Get HELP for this.
|
void |
Avatar.HELP(User from)
Verb (Avatar): Reply with the HELP for this avatar.
|
void |
Region.I_AM_HERE(User from)
Handle the client request to "appear" after the client is done loading the region.
|
void |
Knick_knack.knick_knack_HELP(User from)
Reply with the knick_knack description, and if if magical, display that as well.
|
void |
Region.LEAVE(User from,
OptInteger reason)
The client is leaving the Habitat Application and wants to politely disconnect.
|
void |
Knick_knack.MAGIC(User from,
OptInteger target)
Verb (Magical): Magic activation
|
void |
Avatar.NEWREGION(User from,
OptInteger direction,
OptInteger passage_id)
Verb (Specific): TODO Leave the region for another region.
|
void |
Flashlight.OFF(User from)
Verb (Switch): Turn this OFF
|
void |
Flashlight.ON(User from)
Verb (Switch): Turn this ON
|
void |
Avatar.POSTURE(User from,
OptInteger pose)
Verb (Specific): TODO Change this avatar's posture.
|
void |
Region.PROMPT_REPLY(User from,
OptString text)
Handle a prompted message, overloading the text-entry field.
|
void |
Knick_knack.PUT(User from,
OptInteger containerNoid,
OptInteger x,
OptInteger y,
OptInteger orientation)
Verb (Generic): Put this item into some container or on the ground.
|
void |
Key.PUT(User from,
OptInteger containerNoid,
OptInteger x,
OptInteger y,
OptInteger orientation)
Verb (Generic): Put this item into some container or on the ground.
|
void |
Head.PUT(User from,
OptInteger containerNoid,
OptInteger x,
OptInteger y,
OptInteger orientation)
Verb (Generic): Put this item into some container or on the ground.
|
void |
Flashlight.PUT(User from,
OptInteger containerNoid,
OptInteger x,
OptInteger y,
OptInteger orientation)
Verb (Generic): Put this item into some container or on the ground.
|
void |
Box.PUT(User from,
OptInteger containerNoid,
OptInteger x,
OptInteger y,
OptInteger orientation)
Verb (Generic): Put this item into some container or on the ground.
|
void |
Bag.PUT(User from,
OptInteger containerNoid,
OptInteger x,
OptInteger y,
OptInteger orientation)
Verb (Generic): Put this item into some container or on the ground.
|
void |
Head.REMOVE(User from)
Verb (Specific): Move this head from my avatar's HEAD to the HANDS slot.
|
void |
Avatar.SIT(User from)
Verb (Specific): TODO Sit down.
|
void |
Avatar.SPEAK(User from,
OptInteger esp,
OptString text)
Verb (Specific): TODO Speak to the region/ESP to another user
|
void |
Knick_knack.TEST(User from) |
void |
Knick_knack.THROW(User from,
int targetNoid,
int x,
int y)
Verb (Generic): Throw this across the Region
|
void |
Key.THROW(User from,
int target,
int x,
int y)
Verb (Generic): Throw this across the Region
|
void |
Head.THROW(User from,
int target,
int x,
int y)
Verb (Generic): Throw this across the Region
|
void |
Flashlight.THROW(User from,
int target,
int x,
int y)
Verb (Generic): Throw this across the Region
|
void |
Box.THROW(User from,
int target,
int x,
int y)
Verb (Generic): Throw this across the Region
|
void |
Bag.THROW(User from,
int target,
int x,
int y)
Verb (Generic): Throw this across the Region
|
void |
Avatar.TOUCH(User from)
Verb (Specific): TODO Touch another avatar.
|
void |
Avatar.WALK(User from,
OptInteger x,
OptInteger y,
OptInteger how)
Verb (Specific): TODO Walk across the region.
|
void |
Head.WEAR(User from)
Verb (Specific): Move this head from my avatar's HANDS to the HEAD slot.
|
Copyright © 2017. All rights reserved.