Package | Description |
---|---|
org.made.neohabitat | |
org.made.neohabitat.mods |
Modifier and Type | Class and Description |
---|---|
class |
Container
an Elko Habitat superclass to handle container state.
|
class |
Magical
an Elko Habitat superclass to handle magic state and specific behaviors.
|
class |
Massive
an Elko Habitat superclass to handle massive state.
|
class |
Openable
an Elko Habitat superclass to handle container open/closed and locked/unlocked states.
|
class |
Switch
an Elko Habitat superclass to handle on/off states.
|
class |
Walkable
an Elko Habitat superclass to handle avatar walkable surfaces.
|
Modifier and Type | Method and Description |
---|---|
HabitatMod |
Container.contents(int index)
In pl1 contents[] was an array of noids - with positional offsets for class_avatar (not for other containers)
Now it's an get function with the same name for easy porting.
|
Modifier and Type | Method and Description |
---|---|
boolean |
HabitatMod.accessable(HabitatMod object)
accessable -- Return true iff a given object can be reached by the avatar.
|
boolean |
HabitatMod.adjacent(HabitatMod object)
Are we standing next to the object so we can manipulate it properly?
|
boolean |
HabitatMod.available(HabitatMod container,
int x,
int y)
Is the specified position available to be filled?
|
boolean |
HabitatMod.change_containers(HabitatMod obj,
Container new_container,
int new_position,
boolean cp)
change_containers -- Move an object from one container to another.
|
void |
HabitatMod.checkpoint_object(HabitatMod mod)
Write the object to the Elko Habitat Database.
|
boolean |
HabitatMod.container_is_opaque(HabitatMod cont)
Visibility check.
|
boolean |
HabitatMod.container_is_opaque(HabitatMod cont,
int pos)
This is a special-case visibility check.
|
Container |
HabitatMod.container(HabitatMod obj)
Replaces global container
|
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 |
HabitatMod.generic_THROW(User from,
HabitatMod target,
int target_x,
int target_y)
Throw this across the room, onto some kind of surface.
|
boolean |
HabitatMod.getable(HabitatMod object)
getable -- Return true iff a given object can be picked up by an avatar.
|
boolean |
HabitatMod.grabable(HabitatMod object)
grabable -- Return true iff a given object can be grabbed from an avatar's hand.
|
boolean |
HabitatMod.here(HabitatMod object,
User user)
here -- Return true iff the given object is exactly where the Avatar is.
|
boolean |
HabitatMod.holding(Avatar avatar,
HabitatMod object)
holding -- Return true iff the avatar is holding a given object.
|
int |
HabitatMod.item_value(HabitatMod item)
Used in pawn machines to set the buy-back value of a Habitat object.
|
void |
HabitatMod.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.
|
boolean |
HabitatMod.wearing(Avatar avatar,
HabitatMod object)
wearing -- Return true iff the avatar is wearing (head slot) a given object.
|
Modifier and Type | Class and Description |
---|---|
class |
Avatar
The Avatar Mod (attached to an Elko User.)
This holds both the Habitat User state, and the
Avatar state and behaviors, which include action on
the User's Avatar, and when interacting with other User's Avatars.
|
class |
Bag
Habitat Bag Mod (attached to an Elko Item.)
A Bag is a small container that can be open/closed and [un]locked.
|
class |
Box
Habitat Box Mod (attached to an Elko Item.)
A Box is a large container that can be open/closed and [un]locked.
|
class |
Flashlight
Habitat Flashlight Mod (attached to an Elko Item.)
A Flashlight may be switched on/off, and it effects room lighting.
|
class |
Ground
Habitat Ground Mod (attached to an Elko Item)
Your Avatar walks on the Ground.
|
class |
Head
Habitat Head Mod (attached to an Elko Item.)
The Head is a complex object.
|
class |
Key
Habitat Key Mod (attached to an Elko Item.)
A Key has a code-number that unlocks objects with the matching code.
|
class |
Knick_knack
Habitat Knick_knack Mod (attached to an Elko Item.)
The Knick_knack is a potentially magical room prop.
|
class |
Region
Habitat Region Mod (attached to a Elko Context)
The Region has all the state and behaviors for the main object
of Habitat.
|
class |
Rock
Habitat Rock Mod (attached to an Elko Item.)
Rock don't really do much.
|
class |
Short_sign
Habitat Short_sign Mod (attached to an Elko Item.)
It's a little sign that displays text.
|
class |
Sign
Habitat Sign Mod (attached to an Elko Item.)
It's a sign that displays text.
|
class |
Table
Habitat Table Mod (attached to an Elko Item.)
A Table is a large container that can be open/closed and [un]locked.
|
class |
Tree
Habitat Tree Mod (attached to an Elko Item.)
Trees don't really do much.
|
class |
Wall
Habitat Wall Mod (attached to an Elko Item.)
Walls are bound the visible region (room) and stop the User-Avatar
from walking off the Ground.
|
Modifier and Type | Field and Description |
---|---|
HabitatMod[] |
Region.noids
This is an array holding all the Mods for all the Users and Items in this room.
|
HabitatMod |
Avatar.savedTarget
Target NOID and magic item saved between events, such as for the GOD TOOL (see Magical.java).
|
Modifier and Type | Method and Description |
---|---|
static int |
Region.addToNoids(HabitatMod mod)
Add a HabitatMod to the object list for easy lookup by noid
|
static void |
Region.removeFromObjList(HabitatMod mod)
Remove the noid from the object list.
|
Copyright © 2017. All rights reserved.