public abstract class HabitatMod extends Mod implements HabitatVerbs, ObjectCompletionWatcher
Modifier and Type | Field and Description |
---|---|
boolean[] |
gen_flags |
int |
gr_state |
int |
gr_width |
int |
noid
0-255.
|
int |
orientation
Each graphic resource has multiple views (orientations)
|
int |
style
0-255 Each Habitat Class has a 0-based table mapping to a global 0-255 space of graphics.
|
int |
x
The horizontal position, if the container is THE_REGION
|
int |
y
0-127 If in THE_REGION, the vertical position (+128 if foreground), otherwise the offset within the container.
|
ADJACENCY_ON, ANNOUNCE_$, APPEARING_$, ARRIVAL_$, ARROW_D, ARROW_L, ARROW_R, ARROW_U, ASK, ATTACK, ATTACK$, AUTO_TELEPORT_$, AUTO_TELEPORT_DIR, AV_ACT_arm_back, AV_ACT_arm_get, AV_ACT_bend_back, AV_ACT_bend_over, AV_ACT_frown, AV_ACT_get_shot, AV_ACT_gimme, AV_ACT_hand_back, AV_ACT_hand_out, AV_ACT_jump, AV_ACT_knife, AV_ACT_nop, AV_ACT_operate, AV_ACT_point, AV_ACT_punch, AV_ACT_shoot1, AV_ACT_shoot2, AV_ACT_sit_chair, AV_ACT_sit_floor, AV_ACT_sit_front, AV_ACT_stand, AV_ACT_stand_back, AV_ACT_stand_front, AV_ACT_throw, AV_ACT_unpocket, AV_ACT_walk, AV_ACT_walk_back, AV_ACT_walk_front, AV_ACT_wave, AVATAR_CAPACITY, BALL, BALL_ALT, BALL_FILLED, BASH, BASH$, BEEP$, BLACK_CHAR, BLAST$, BOING_FAILURE, BOX_C, BOX_CD, BOX_CL, BOX_CR, BOX_CU, BOX_DL, BOX_DR, BOX_UL, BOX_UR, british_pound, BUGOUT, BUGOUT$, BYTE_MASK, C64_CONTAINED_OFFSET, C64_CUSTOMIZE_OFFSET, C64_DESTX_OFFSET, C64_DESTY_OFFSET, C64_GR_STATE_OFFSET, C64_HEAP_SIZE, C64_ORIENT_OFFSET, C64_TEXT_OFFSET, C64_TOKEN_DENOM_OFFSET, C64_XPOS_OFFSET, C64_YPOS_OFFSET, CATALOG, CAUGHT_UP_$, CHANGE, CHANGE_CONTAINERS_$, CHANGE$, CHANGELIGHT_$, CHANGESTATE_$, CHANGESTATE$, CIRC_DL, CIRC_DR, CIRC_UL, CIRC_UR, CLASS_AMULET, CLASS_AQUARIUM, CLASS_ATM, CLASS_AVATAR, CLASS_BAG, CLASS_BALL, CLASS_BED, CLASS_BEEPER, CLASS_BOAT, CLASS_BOOK, CLASS_BOOMERANG, CLASS_BOTTLE, CLASS_BOX, CLASS_BRIDGE, CLASS_BUILDING, CLASS_BUREAUCRAT, CLASS_BUSH, CLASS_CAR, CLASS_CHAIR, CLASS_CHANGOMATIC, CLASS_CHEST, CLASS_CLUB, CLASS_COKE_MACHINE, CLASS_COMPASS, CLASS_COUCH, CLASS_COUNTERTOP, CLASS_CREDIT_CARD, CLASS_CRYSTAL_BALL, CLASS_DIE, CLASS_DISPLAY_CASE, CLASS_DOOR, CLASS_DROPBOX, CLASS_DRUGS, CLASS_ELEVATOR, CLASS_ESCAPE_DEV, CLASS_FAKE_GUN, CLASS_FENCE, CLASS_FISH_FOOD, CLASS_FLAG, CLASS_FLASHLIGHT, CLASS_FLAT, CLASS_FLOOR_LAMP, CLASS_FORTUNE_MACHINE, CLASS_FOUNTAIN, CLASS_FRISBEE, CLASS_GAME_PIECE, CLASS_GARBAGE_CAN, CLASS_GEMSTONE, CLASS_GHOST, CLASS_GLUE, CLASS_GRENADE, CLASS_GROUND, CLASS_GUN, CLASS_HAND_OF_GOD, CLASS_HAT, CLASS_HEAD, CLASS_HOLE, CLASS_HOT_TUB, CLASS_HOUSE_CAT, CLASS_INSTANT_OBJECT, CLASS_JACKET, CLASS_JUKEBOX, CLASS_KEY, CLASS_KNICK_KNACK, CLASS_KNIFE, CLASS_MAGIC_LAMP, CLASS_MAGIC_STAFF, CLASS_MAGIC_WAND, CLASS_MAILBOX, CLASS_MATCHBOOK, CLASS_MICROPHONE, CLASS_MOTORCYCLE, CLASS_MOVIE_CAMERA, CLASS_PAPER, CLASS_PARKING_METER, CLASS_PAWN_MACHINE, CLASS_PENCIL, CLASS_PICTURE, CLASS_PLANT, CLASS_PLAQUE, CLASS_POND, CLASS_RADIO, CLASS_REGION, CLASS_RING, CLASS_RIVER, CLASS_ROAD_PIZZA, CLASS_ROCK, CLASS_ROOF, CLASS_RUBBER_DUCKY, CLASS_SAFE, CLASS_SECURITY_DEV, CLASS_SENSOR, CLASS_SEX_CHANGER, CLASS_SHOES, CLASS_SHORT_SIGN, CLASS_SHOVEL, CLASS_SIDEWALK, CLASS_SIGN, CLASS_SKATEBOARD, CLASS_SKIRT, CLASS_SKY, CLASS_SPRAY_CAN, CLASS_STEREO, CLASS_STREET, CLASS_STREETLAMP, CLASS_STUN_GUN, CLASS_SUPER_TRAPEZOID, CLASS_SWITCH, CLASS_TABLE, CLASS_TAPE, CLASS_TEDDY_BEAR, CLASS_TELEPHONE, CLASS_TELEPORT, CLASS_TEST, CLASS_TICKET, CLASS_TOKENS, CLASS_TOWEL, CLASS_TRAPEZOID, CLASS_TREE, CLASS_TRUCK, CLASS_VENDO_FRONT, CLASS_VENDO_INSIDE, CLASS_WALKIE_TALKIE, CLASS_WALL, CLASS_WATER, CLASS_WINDOW, CLASS_WINDUP_TOY, clear_key, CLIENT_ERRORS, CLOSE, CLOSE$, CLOSECONTAINER, CLOSECONTAINER$, COLLISION_ON, COLOR_BITS, COLOR_FLAG, COLOR_POSTURE, CONNECTION_HABITAT, CONNECTION_JSON, CORPORATE, CURSE_COOTIES, CURSE_FLY, CURSE_MUTANT, CURSE_NONE, CURSE_SMILEY, cursor_down, cursor_left, cursor_right, cursor_up, CUSTOMIZE, DEATH_ENTRY, DEPARTING_$, DEPARTURE_$, DEPOSIT, DESCRIBE, DIAG_DL, DIAG_DR, DIAG_UL, DIAG_UR, DIAL$, DIE$, DIG, DIG$, DIRECT, DISCORPORATE, DOOR_AVATAR_RESTRICTED_BIT, DOOR_GHOST_RESTRICTED_BIT, DRIVE$, ESP, EXPIRE_$, EXPLODE_$, FACE_LEFT, FACE_RIGHT, FACING_BIT, FAKESHOOT, FAKESHOOT$, FALSE, FEED, FIDDLE_$, FIFTH, FILL, FILL$, FINGER_IN_QUE, FIRST, FLUSH, FLUSH$, FNKEY, FOREGROUND_BIT, FOURTH, GET, GET$, GOAWAY_$, GOD_FLAG, GOD_TOOL_PROMPT, GRAB, GRAB$, GRABFROM$, GROUND_FLAT, HAND, HANDS, HANG$, HEAD, HEAD_GROUND_STATE, HELP, HEREIS_$, home_key, HUNGUP$, I_AM_HERE, IMALIVE, insert_key, INVISIBLE, LEAVE, LINE_LR, LINE_UD, LOAD, LOAD$, LOTTO_PROMPT, MAGIC, MAGIC_LAMP_GENIE, MAGIC_LAMP_WAITING, MAGIC_OPEN_PROMPT, MAIL_SLOT, MAILARRIVED$, MAX_CLASS_NUMBER, MAX_CLASS_NUMBER_PLUS_1, MAX_HEALTH, MAX_WORD_BALLON_LEN, MISC_FLAG1, MISC_FLAG2, MISC_FLAG3, MODIFIED, MUNCH, MUNCH$, NEWHEAD$, NEWREGION, NULL, NUMBER_OF_RESOURCES, OBJECTSPEAK_$, ObjectsPerRegion, OFF, OFF$, OFFLIGHT$, OFFPLAYER, ON, ON$, ONLIGHT$, ONPLAYER, OPEN, OPEN_BIT, OPEN$, OPENCONTAINER, OPENCONTAINER$, OPERATE, ORACLESPEAK_$, PAID$, PAPER_LENGTH, PATTERN_BITS, PAY, PAY$, PAYTO, PAYTO$, PLAY_$, PLAYMESSAGE, POSTURE, POSTURE$, POUR, POUR$, PROMPT_REPLY, PROMPT_USER_$, PSENDMAIL, PULLPIN, PUT, PUT$, READ, READLABEL, READMAIL, README, regions_per_process, REINCARNATE$, REMOVE, REMOVE$, RESET, RESET$, RESTRICTED, RETURN$, ROLL, ROLL$, RUB, RUB$, SCAN, SCAN$, SECOND, SELECT, SELL$, SENDMAIL, Separation_Char, SEXCHANGE, SEXCHANGE$, shift_0, shift_asterisk, shift_at, shift_british_pound, shift_equal, shift_minus, shift_plus, sign_char_cursor_down, sign_char_cursor_left, sign_char_cursor_right, sign_char_cursor_up, sign_char_dec_height, sign_char_dec_width, sign_char_double_space, sign_char_half_char_down, sign_char_half_size, sign_char_half_space, sign_char_inc_height, sign_char_inc_width, sign_char_inverse_video, sign_char_return_key, SIT, SIT_CHAIR, SIT_FRONT, SIT_GROUND, SIT$, SPEAK, SPEAK$, SPEAKFORTUNE$, SPRAY, SPRAY$, SQUIGGLE, STAND, STAND_FRONT, STAND_LEFT, STAND_RIGHT, start_text, STEAL_FREE, STUN, TAKE, TAKE$, TAKEMESSAGE$, TALK, TELEPORT_ENTRY, TEXT_LENGTH, THE_REGION, THIRD, THROW, THROW$, THROWAWAY$, TOUCH, TRANSFORM$, TRUE, UNHOOK, UNHOOK$, UNLOAD, UNLOAD$, UNLOCKED_BIT, UNWEARABLE, UPDATE$, UsersPerRegion, VOTED_FLAG, VSELECT, VSELECT$, WAITFOR_$, WALK, WALK_ENTRY, WALK$, WEAPONS_FREE, WEAR, WEAR$, WIND, WIND$, WISH, WISH$, WITHDRAW, WRITE, ZAPIN$, ZAPTO, ZAPTO$
Constructor and Description |
---|
HabitatMod(OptInteger style,
OptInteger x,
OptInteger y,
OptInteger orientation,
OptInteger gr_state)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accessable(HabitatMod object)
accessable -- Return true iff a given object can be reached by the avatar.
|
boolean |
adjacent(HabitatMod object)
Are we standing next to the object so we can manipulate it properly?
|
void |
ASK(User from)
Verb (Illegal): This shouldn't get here.
|
boolean |
available(HabitatMod container,
int x,
int y)
Is the specified position available to be filled?
|
Avatar |
avatar(User user)
Replaces globals avatar/avatarptr
|
boolean |
change_containers(HabitatMod obj,
Container new_container,
int new_position,
boolean cp)
change_containers -- Move an object from one container to another.
|
void |
checkpoint_object(HabitatMod mod)
Write the object to the Elko Habitat Database.
|
int |
clear_bit(int val,
int bitpos)
Clear a bit in an integer.
|
boolean |
container_is_opaque(HabitatMod cont)
Visibility check.
|
boolean |
container_is_opaque(HabitatMod cont,
int pos)
This is a special-case visibility check.
|
Container |
container()
Replaces global container (altenate interface)
|
Container |
container(HabitatMod obj)
Replaces global container
|
Region |
current_region()
Replaces global current_region
|
void |
DO(User from)
Verb (Illegal): This shouldn't get here.
|
boolean |
elsewhere(HabitatMod object,
User user)
elsewhere -- Return true iff the object is not near the Avatar (i.e., not
adjacent and not in hand).
|
boolean |
empty_handed(Avatar who)
empty_handed -- Return true iff 'who' is not holding anything.
|
JSONLiteral |
encodeCommon(JSONLiteral result) |
void |
generic_GET(User from)
Almost all efforts to GET a Habitat object go through this code.
|
void |
generic_HELP(User from)
Most of the Habitat classes only need simple strings for their HELP messages, so
this generic implementation provides that.
|
void |
generic_PUT(User from)
Simple 0-parameter PUT version provided to allow for JSON interface testing.
|
void |
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 |
generic_PUT(User from,
int containerNoid,
int x,
int y,
int orientation)
Put this into a new container specified by noid.
|
void |
generic_THROW(User from,
HabitatMod target,
int target_x,
int target_y)
Throw this across the room, onto some kind of surface.
|
void |
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 |
GET(User from)
Verb (Generic): Pick this item up.
|
boolean |
getable(HabitatMod object)
getable -- Return true iff a given object can be picked up by an avatar.
|
boolean |
grabable(HabitatMod object)
grabable -- Return true iff a given object can be grabbed from an avatar's hand.
|
void |
HELP(User from)
Verb (Generic): Get HELP for this.
|
boolean |
here(HabitatMod object,
User user)
here -- Return true iff the given object is exactly where the Avatar is.
|
boolean |
holding(Avatar avatar,
HabitatMod object)
holding -- Return true iff the avatar is holding a given object.
|
void |
illegal(User from)
Dump a trace message that an illegal request was received into the log.
|
void |
illegal(User from,
String request)
Dump a trace message that an illegal request was received into the log.
|
int |
item_value(HabitatMod item)
Used in pawn machines to set the buy-back value of a Habitat object.
|
void |
message_to_god(HabitatMod obj,
HabitatMod avatar,
String msg)
Message from a Habitat user that is meant to be logged in a special
Oracle/Moderator log file.
|
JSONLiteral |
new_broadcast_msg(int noid,
String op)
Create a JSONLiteral initialized with the minimum arguments for broadcast from the Habitat/Elko server.
|
JSONLiteral |
new_broadcast_msg(String op)
Create a JSONLiteral initialized with the minimum arguments needed for the Habitat/Elko server.
|
JSONLiteral |
new_neighbor_msg(int noid,
String op)
Create a JSONLiteral initialized with the minimum arguments to send to a user/connections "neighbors/other users" via the Habitat/Elko server.
|
JSONLiteral |
new_neighbor_msg(String op)
Create a JSONLiteral initialized with the minimum arguments to send to a user/connections "neighbors/other users" via the Habitat/Elko server.
|
JSONLiteral |
new_private_msg(int noid,
String op)
Create a JSONLiteral initialized with the minimum arguments to send a private message to a single targeted user/connection.
|
JSONLiteral |
new_private_msg(String op)
Create a JSONLiteral initialized with the minimum arguments to send a private message to a single targeted user/connection.
|
JSONLiteral |
new_reply_msg()
Generates a reply message assuming that the noid is inferred by this object.
|
JSONLiteral |
new_reply_msg(int noid)
Creates a SYNCHRONOUS (client is waiting) reply message using the minimum arguments.
|
String |
obj_id()
Replaces original global 'obj_id'
NOTE: Changes it's type from originally numeric to string.
|
void |
object_broadcast(int noid,
String text)
An object sends a string message to everyone
|
void |
object_broadcast(String text)
An object sends a string message to everyone
|
void |
object_say(User to,
int noid,
String text)
An object sends a string message to a specific user
|
void |
object_say(User to,
String text)
An object sends a string message to a specific user
|
void |
objectIsComplete()
Do what needs to be done now that you are in a finished object
environment.
|
int |
packBits(boolean[] bits)
NOTE: PL1 arrays uses 1-based arrays, so historically all
the bit offset constants are as well.
|
int |
position()
Replaces original global 'position'
|
void |
PUT(User from,
OptInteger containerNoid,
OptInteger x,
OptInteger y,
OptInteger orientation)
Verb (Generic): Put this item into some container or on the ground.
|
void |
RDO(User from)
Verb (Illegal): This shouldn't get here.
|
void |
send_broadcast_msg(int noid,
String op)
Sends a ASYNCHRONOUS broadcast message to all the connections/users/avatars in a region.
|
void |
send_broadcast_msg(int noid,
String op,
String text)
Sends a ASYNCHRONOUS broadcast message to all the connections/users/avatars in a region.
|
void |
send_broadcast_msg(int noid,
String op,
String attrib,
int value)
Sends a ASYNCHRONOUS broadcast message to all the connections/users/avatars in a region.
|
void |
send_broadcast_msg(int noid,
String op,
String a1,
int v1,
String a2,
int v2)
Sends a ASYNCHRONOUS broadcast message to all the connections/users/avatars in a region.
|
void |
send_broadcast_msg(int noid,
String op,
String a1,
int v1,
String a2,
int v2,
String a3,
int v3)
Sends a ASYNCHRONOUS broadcast message to all the connections/users/avatars in a region.
|
void |
send_broadcast_msg(int noid,
String op,
String a1,
int v1,
String a2,
int v2,
String a3,
int v3,
String a4,
int v4)
Sends a ASYNCHRONOUS broadcast message to all the connections/users/avatars in a region.
|
void |
send_broadcast_msg(int noid,
String op,
String attrib,
String value)
Sends a ASYNCHRONOUS broadcast message to all the connections/users/avatars in a region.
|
void |
send_fiddle_msg(int noid,
int[] args)
Send a fiddle message to the entire region.
|
void |
send_neighbor_msg(User from,
int noid,
String op)
Sends a ASYNCHRONOUS message to all the neighbors (other user/connections) in a region.
|
void |
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 |
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 |
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 |
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 |
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 |
send_neighbor_msg(User from,
String op)
Sends a ASYNCHRONOUS message to all the neighbors (other user/connections) in a region.
|
void |
send_private_msg(User from,
int noid,
User to,
String op)
Send a private message to a specified user-connection.
|
void |
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 |
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 |
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 |
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 |
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 |
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 |
send_reply_err(User from,
int noid,
int err)
Send simple SYNCHRONOUS reply indicating success or failure.
|
void |
send_reply_error(User from)
Send simple SYNCHRONOUS reply indicating failure.
|
void |
send_reply_error(User from,
int noid)
Send simple SYNCHRONOUS reply indicating failure.
|
void |
send_reply_msg(User from,
int noid)
Sends a SYNCHRONOUS (client is waiting) reply message using the minimum arguments.
|
void |
send_reply_msg(User from,
int noid,
String attrib,
int value)
Sends a SYNCHRONOUS (client is waiting) reply message, with addition attributes/values.
|
void |
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 |
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 |
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 |
send_reply_msg(User from,
int noid,
String attrib,
String value)
Sends a SYNCHRONOUS (client is waiting) reply message, with additional String value.
|
void |
send_reply_msg(User from,
String text)
Sends a SYNCHRONOUS (client is waiting) string-only reply message inferring this.noid.
|
void |
send_reply_success(User from)
Send simple SYNCHRONOUS reply indicating success.
|
void |
send_reply_success(User from,
int noid)
Send simple SYNCHRONOUS reply indicating success.
|
int |
set_bit(int val,
int bitpos)
Set a bit in an integer.
|
boolean |
test_bit(int val,
int bitpos)
Test to see if a specific bit is set.
|
void |
TEST(User from)
Verb (Debug): Test rigging for Elko Habitat developers to write trace messages into the log
without actually doing anything
|
void |
THROW(User from,
int target,
int x,
int y)
Verb (Generic): Throw this across the Region
|
void |
trace_msg(String msg)
Dump a string to the debugging server log.
|
boolean[] |
unpackBits(int packedBits) |
void |
unsupported_reply(User from,
int noid,
String text)
Temporary scaffolding for incremental development of the server.
|
boolean |
wearing(Avatar avatar,
HabitatMod object)
wearing -- Return true iff the avatar is wearing (head slot) a given object.
|
attachTo, clone, context, ensureHolding, ensureInContext, ensureReachable, ensureSameContext, ensureSameUser, holder, isEphemeral, markAsChanged, markAsEphemeral, object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
capacity, filler, HabitatClass, HabitatModName, known, opaque_container, pc_state_bytes
public int noid
public int style
public int x
public int y
public int orientation
public int gr_state
public int gr_width
public boolean[] gen_flags
public HabitatMod(OptInteger style, OptInteger x, OptInteger y, OptInteger orientation, OptInteger gr_state)
style
- style offset to choose the presentation image default:0x
- horizontal screen position default: 0y
- vertical screen position/z-depth default: 0orientation
- graphic image orientation default: 0gr_state
- animation/graphic state default:0public int position()
public String obj_id()
public Avatar avatar(User user)
user
- Who you want to get the Avatar Mod for.public Region current_region()
public Container container(HabitatMod obj)
obj
- The habitat mod that wants to find it's container.public Container container()
public void objectIsComplete()
ObjectCompletionWatcher
This method will be called automatically by the server's object creation mechanism upon completion of the creation of an object to which the mod implementing this interface is attached.
Note: if an object has more than one mod that implements this interface, the order in which the various mods' implementations of this method will be called is undefined.
objectIsComplete
in interface ObjectCompletionWatcher
public JSONLiteral encodeCommon(JSONLiteral result)
public void illegal(User from)
from
- User representing the connection making the request.public void illegal(User from, String request)
from
- User representing the connection making the request.request
- The string describing the rejected request.@JSONMethod public void TEST(User from)
from
- User representing the connection making the request.@JSONMethod public void HELP(User from)
HELP
in interface HabitatVerbs
from
- User representing the connection making the request.@JSONMethod public void ASK(User from)
ASK
in interface HabitatVerbs
from
- User representing the connection making the request.@JSONMethod public void DO(User from)
DO
in interface HabitatVerbs
from
- User representing the connection making the request.@JSONMethod public void RDO(User from)
RDO
in interface HabitatVerbs
from
- User representing the connection making the request.@JSONMethod public void GET(User from)
GET
in interface HabitatVerbs
from
- User representing the connection making the request.@JSONMethod(value={"containerNoid","x","y","orientation"}) public void PUT(User from, OptInteger containerNoid, OptInteger x, OptInteger y, OptInteger orientation)
PUT
in interface HabitatVerbs
from
- User representing the connection making the request.containerNoid
- The Habitat Noid for the target container THE_REGION is default.x
- If THE_REGION is the new container, the horizontal position. Otherwise ignored.y
- If THE_REGION: the vertical position, otherwise the target container slot (e.g. HANDS/HEAD or other.)orientation
- The new orientation for the object being PUT.@JSONMethod(value={"target","x","y"}) public void THROW(User from, int target, int x, int y)
THROW
in interface HabitatVerbs
from
- User representing the connection making the request.x
- Destination horizontal positiony
- Destination vertical position (lower 7 bits)public void generic_GET(User from)
from
- User representing the connection making the request.public void generic_PUT(User from)
from
- User representing the connection making the request.public void generic_PUT(User from, int containerNoid, int x, int y, int orientation)
from
- User representing the connection making the request.containerNoid
- The noid of the new container for this.x
- The new horizontal position of the object (if the container is THE_REGION)y
- The new vertical position in THE_REGION or slot number in the new container.orientation
- The new orientation for this once transfered.public void generic_PUT(User from, Container cont, int pos_x, int pos_y, int obj_orient)
from
- User representing the connection making the request.cont
- The noid of the new container for this.pos_x
- The new horizontal position of the object (if the container is THE_REGION)pos_y
- The new vertical position in THE_REGION or slot number in the new container.obj_orient
- The new orientation for this once transfered.public void generic_THROW(User from, int target, int target_x, int target_y)
from
- User representing the connection making the request.target
- The noid of the new container for this.target_x
- The new horizontal position for this.target_y
- The new vertical position for this.public void generic_THROW(User from, HabitatMod target, int target_x, int target_y)
from
- User representing the connection making the request.target
- The new containertarget_x
- The new horizontal position for this.target_y
- The new vertical position for this.public void generic_HELP(User from)
from
- User representing the connection making the request.public boolean[] unpackBits(int packedBits)
packedBits
- The bits unpacked into a boolean array.
NOTE: PL1 arrays uses 1-based arrays, so historically all
the bit offset constants are as well.
We lose the high bit, but we never use it.public int packBits(boolean[] bits)
bits
- The boolean array to pack into an int.public int item_value(HabitatMod item)
item
- The thing being priced.public boolean container_is_opaque(HabitatMod cont, int pos)
cont
- The container being testedpos
- The position being testedpublic boolean container_is_opaque(HabitatMod cont)
cont
- The container being testedpublic boolean empty_handed(Avatar who)
who
- The avatar being tested.public boolean holding(Avatar avatar, HabitatMod object)
avatar
- The avatar being tested.object
- The object being tested.public boolean wearing(Avatar avatar, HabitatMod object)
avatar
- The avatar being tested.object
- The object being tested.public boolean getable(HabitatMod object)
object
- The object being tested.public boolean grabable(HabitatMod object)
object
- The object being tested.public boolean available(HabitatMod container, int x, int y)
container
- The target container;x
- The horizontal position (not considered. Should be deprecated)y
- The slot/vertical positionpublic boolean accessable(HabitatMod object)
object
- The object being tested.public boolean elsewhere(HabitatMod object, User user)
object
- The object being tested.user
- The User-avatarpublic boolean here(HabitatMod object, User user)
object
- The object being tested.user
- The User-avatarpublic boolean adjacent(HabitatMod object)
object
- The object being tested.public boolean change_containers(HabitatMod obj, Container new_container, int new_position, boolean cp)
obj
- The object being movednew_container
- The target containernew_position
- The new position (slot)cp
- Checkpoint flagpublic void trace_msg(String msg)
msg
- The message to log.public void message_to_god(HabitatMod obj, HabitatMod avatar, String msg)
obj
- The object that is logging the message (e.g. Oracle Fountain.)avatar
- The avatar that took the action to trigger the message.msg
- The message to be logged.public void object_say(User to, int noid, String text)
to
- User the message is going to.noid
- The object speaking to the user.text
- What the object wants to say.public void object_say(User to, String text)
to
- User the message is going to.text
- What the object wants to say.public void object_broadcast(int noid, String text)
noid
- The object speaking to the region.text
- What the object wants to say.public void object_broadcast(String text)
text
- What the object wants to say.public void send_fiddle_msg(int noid, int[] args)
noid
- args
- public void unsupported_reply(User from, int noid, String text)
from
- The connection for this user.noid
- The noid that sent the request that is being unceremoniously terminated.text
- This error message text will be sent to the client of the user that issued the unsupported command.public JSONLiteral new_broadcast_msg(int noid, String op)
noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. In the PL/1 source this was a numeric constant, not a string. i.e PL/1: SPEAK$ Elko: "SPEAK$". The lookup now occurs in the Client/Server bridge.public JSONLiteral new_broadcast_msg(String op)
op
- The STRING name of the ASYNCRONOUS request. In the PL/1 source this was a numeric constant, not a string. i.e PL/1: SPEAK$ Elko: "SPEAK$". The lookup now occurs in the Client/Server bridge.public void send_broadcast_msg(int noid, String op)
noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_broadcast_msg)public void send_broadcast_msg(int noid, String op, String text)
noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_broadcast_msg)text
- A string to send, will have attribute name "text"public void send_broadcast_msg(int noid, String op, String attrib, int value)
noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_broadcast_msg)attrib
- The attribute name to be added to the messagevalue
- The value of the attribute.public void send_broadcast_msg(int noid, String op, String attrib, String value)
noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_broadcast_msg)attrib
- The attribute name to be added to the messagevalue
- The string value of the attribute.public void send_broadcast_msg(int noid, String op, String a1, int v1, String a2, int v2)
noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_broadcast_msg)a1
- First attribute to addv1
- First value to adda2
- Second attribute to addv2
- Second value to addpublic void send_broadcast_msg(int noid, String op, String a1, int v1, String a2, int v2, String a3, int v3)
noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_broadcast_msg)a1
- First attribute to addv1
- First value to adda2
- Second attribute to addv2
- Second value to adda3
- Third attribute to addv3
- Third value to addpublic void send_broadcast_msg(int noid, String op, String a1, int v1, String a2, int v2, String a3, int v3, String a4, int v4)
noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_broadcast_msg)a1
- First attribute to addv1
- First value to adda2
- Second attribute to addv2
- Second value to adda3
- Third attribute to addv3
- Third value to adda4
- Fourth attribute to addv4
- Fourth value to addpublic JSONLiteral new_reply_msg(int noid)
noid
- The object waiting for this reply.public JSONLiteral new_reply_msg()
public void send_reply_msg(User from, int noid)
from
- The User/connection that gets the reply.noid
- The object waiting for this reply.public void send_reply_msg(User from, String text)
from
- The User/connection that gets the reply.text
- The string to send, added with the attribute name "text"public void send_reply_msg(User from, int noid, String attrib, int value)
from
- The User/connection that gets the reply.noid
- The object waiting for this reply.attrib
- The attribute name to be added to the messagevalue
- The value of the attribute.public void send_reply_msg(User from, int noid, String a1, int v1, String a2, int v2)
from
- The User/connection that gets the reply.noid
- The object waiting for this reply.a1
- First attribute to addv1
- First value to adda2
- Second attribute to addv2
- Second value to addpublic void send_reply_msg(User from, int noid, String a1, int v1, String a2, int v2, String a3, int v3)
from
- The User/connection that gets the reply.noid
- The object waiting for this reply.a1
- First attribute to addv1
- First value to adda2
- Second attribute to addv2
- Second value to adda3
- Third attribute to addv3
- Third value to addpublic void send_reply_msg(User from, int noid, String a1, int v1, String a2, int v2, String a3, int v3, String a4, int v4)
from
- The User/connection that gets the reply.noid
- The object waiting for this reply.a1
- First attribute to addv1
- First value to adda2
- Second attribute to addv2
- Second value to adda3
- Third attribute to addv3
- Third value to adda4
- Fourth attribute to addv4
- Fourth value to addpublic void send_reply_msg(User from, int noid, String attrib, String value)
from
- The User/connection that gets the reply.noid
- The object waiting for this reply.attrib
- The attribute name to be added to the messagevalue
- The STRING value of the attribute.public void send_reply_err(User from, int noid, int err)
from
- The User/connection that gets the reply.noid
- The object waiting for this reply.err
- The error state byte (NOT boolean), added to the msg as attribute "err"public void send_reply_error(User from, int noid)
from
- The User/connection that gets the reply.noid
- The object waiting for this reply.public void send_reply_error(User from)
from
- The User/connection that gets the reply.public void send_reply_success(User from, int noid)
from
- The User/connection that gets the reply.noid
- The object waiting for this reply.public void send_reply_success(User from)
from
- The User/connection that gets the reply.public JSONLiteral new_neighbor_msg(int noid, String op)
noid
- The object that is acting.op
- The STRING name of the ASYNCRONOUS request. In the PL/1 source this was a numeric constant, not a string. i.e PL/1: SPEAK$ Elko: "SPEAK$". The lookup now occurs in the Client/Server bridge.public JSONLiteral new_neighbor_msg(String op)
op
- The STRING name of the ASYNCRONOUS request. In the PL/1 source this was a numeric constant, not a string. i.e PL/1: SPEAK$ Elko: "SPEAK$". The lookup now occurs in the Client/Server bridge.public void send_neighbor_msg(User from, int noid, String op)
from
- The user/connection that is acting, and the only one that will NOT get the message.noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_neighbor_msg)public void send_neighbor_msg(User from, String op)
from
- The user/connection that is acting, and the only one that will NOT get the message.op
- The STRING name of the ASYNCRONOUS request. (See::new_neighbor_msg)public void send_neighbor_msg(User from, int noid, String op, String attrib, int value)
from
- The user/connection that is acting, and the only one that will NOT get the message.noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_neighbor_msg)attrib
- First attribute to addvalue
- First value to addpublic void send_neighbor_msg(User from, int noid, String op, String a1, int v1, String a2, int v2)
from
- The user/connection that is acting, and the only one that will NOT get the message.noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_neighbor_msg)a1
- First attribute to addv1
- First value to adda2
- Second attribute to addv2
- Second value to addpublic void send_neighbor_msg(User from, int noid, String op, String a1, int v1, String a2, int v2, String a3, int v3)
from
- The user/connection that is acting, and the only one that will NOT get the message.noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_neighbor_msg)a1
- First attribute to addv1
- First value to adda2
- Second attribute to addv2
- Second value to adda3
- Third attribute to addv3
- Third value to addpublic void 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)
from
- The user/connection that is acting, and the only one that will NOT get the message.noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_neighbor_msg)a1
- First attribute to addv1
- First value to adda2
- Second attribute to addv2
- Second value to adda3
- Third attribute to addv3
- Third value to adda4
- Fourth attribute to addv4
- Fourth value to addpublic void send_neighbor_msg(User from, int noid, String op, String attrib, String value)
from
- The user/connection that is acting, and the only one that will NOT get the message.noid
- The object that is broadcasting.op
- The STRING name of the ASYNCRONOUS request. (See::new_neighbor_msg)attrib
- Attribute to addvalue
- String to addpublic JSONLiteral new_private_msg(int noid, String op)
noid
- The object that is acting.op
- The STRING name of the ASYNCRONOUS request. In the PL/1 source this was a numeric constant, not a string. i.e PL/1: SPEAK$ Elko: "SPEAK$". The lookup now occurs in the Client/Server bridge.public JSONLiteral new_private_msg(String op)
op
- The STRING name of the ASYNCRONOUS request. In the PL/1 source this was a numeric constant, not a string. i.e PL/1: SPEAK$ Elko: "SPEAK$". The lookup now occurs in the Client/Server bridge.public void send_private_msg(User from, int noid, User to, String op)
from
- The user/connection that instigated this action. Will NOT get a copy of the message.noid
- The object that is acting.to
- The user/connection that is the recipient of this private message.op
- The STRING name of the ASYNCRONOUS request. (See::new_private_msg)public void send_private_msg(User from, int noid, User to, String op, String text)
from
- The user/connection that instigated this action. Will NOT get a copy of the message.noid
- The object that is acting.to
- The user/connection that is the recipient of this private message.op
- The STRING name of the ASYNCRONOUS request. (See::new_private_msg)text
- A string to send. Will be added to the message as the "text" parameter.public void send_private_msg(User from, int noid, User to, String op, String attribute, String value)
from
- The user/connection that instigated this action. Will NOT get a copy of the message.noid
- The object that is acting.to
- The user/connection that is the recipient of this private message.op
- The STRING name of the ASYNCRONOUS request. (See::new_private_msg)attribute
- Attribute to addvalue
- String to addpublic void send_private_msg(User from, int noid, User to, String op, String attribute, int value)
from
- The user/connection that instigated this action. Will NOT get a copy of the message.noid
- The object that is acting.to
- The user/connection that is the recipient of this private message.op
- The STRING name of the ASYNCRONOUS request. (See::new_private_msg)attribute
- Attribute to addvalue
- Value to addpublic void 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)
from
- The user/connection that instigated this action. Will NOT get a copy of the message.noid
- The object that is acting.to
- The user/connection that is the recipient of this private message.op
- The STRING name of the ASYNCRONOUS request. (See::new_private_msg)a1
- First attribute to addv1
- First value to adda2
- Second attribute to addv2
- Second value to adda3
- Third attribute to addv3
- Third value to adda4
- Fourth attribute to addv4
- Fourth value to addpublic void send_private_msg(User from, int noid, User to, String op, String a1, int v1, String a2, int v2, String a3, int v3)
from
- The user/connection that instigated this action. Will NOT get a copy of the message.noid
- The object that is acting.to
- The user/connection that is the recipient of this private message.op
- The STRING name of the ASYNCRONOUS request. (See::new_private_msg)a1
- First attribute to addv1
- First value to adda2
- Second attribute to addv2
- Second value to adda3
- Third attribute to addv3
- Third value to addpublic void send_private_msg(User from, int noid, User to, String op, String a1, int v1, String a2, int v2)
from
- The user/connection that instigated this action. Will NOT get a copy of the message.noid
- The object that is acting.to
- The user/connection that is the recipient of this private message.op
- The STRING name of the ASYNCRONOUS request. (See::new_private_msg)a1
- First attribute to addv1
- First value to adda2
- Second attribute to addv2
- Second value to addpublic int clear_bit(int val, int bitpos)
val
- starting valuebitpos
- 1-based bit position (right to left) to clearpublic int set_bit(int val, int bitpos)
val
- starting valuebitpos
- 1-based bit position (right to left) to setpublic boolean test_bit(int val, int bitpos)
val
- value to searchbitpos
- 1-based bit position (right to left) to testpublic void checkpoint_object(HabitatMod mod)
mod
- The Habitat Mod to checkpoint.Copyright © 2017. All rights reserved.