|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Rideable
The interface for an item or mob which may be ridden
Rider| Field Summary | |
|---|---|
static int |
RIDEABLE_AIR
constant for the rideType() method. |
static java.lang.String[] |
RIDEABLE_DESCS
list of strings describing the RIDEABLE_* constants in their numeric value order |
static int |
RIDEABLE_ENTERIN
constant for the rideType() method. |
static int |
RIDEABLE_LADDER
constant for the rideType() method. |
static int |
RIDEABLE_LAND
constant for the rideType() method. |
static int |
RIDEABLE_SIT
constant for the rideType() method. |
static int |
RIDEABLE_SLEEP
constant for the rideType() method. |
static int |
RIDEABLE_TABLE
constant for the rideType() method. |
static int |
RIDEABLE_WAGON
constant for the rideType() method. |
static int |
RIDEABLE_WATER
constant for the rideType() method. |
| Method Summary | |
|---|---|
void |
addRider(Rider mob)
Adds a new Rider to this Rideable. |
boolean |
amRiding(Rider mob)
Returns whether Rider is currently mounted on this Rideable |
void |
delRider(Rider mob)
Removes a Rider from this Rideable. |
java.lang.String |
dismountString(Rider R)
Returns a string grammatically correct for the given rider when they are dismounting this Rideable |
Rider |
fetchRider(int which)
Returns a particular Rider mounted on this Rideable. |
java.util.HashSet |
getRideBuddies(java.util.HashSet list)
Adds all of the MOB Riders on this Rideable to the given HashSet and returns it |
boolean |
isMobileRideBasis()
Whether the type of rideable is mobile. |
boolean |
mobileRideBasis()
Whether this Rideable moves when the Rider wants to move it. |
java.lang.String |
mountString(int commandType,
Rider R)
Returns a string grammatically correct for the given rider when they are mounting this Rideable |
int |
numRiders()
Returns the number of riders currently mounted on this Rideable |
java.lang.String |
putString(Rider R)
Returns a string grammatically correct for the given rider when they are putting something on this Rideable |
int |
rideBasis()
The type of rideable object this is. |
int |
riderCapacity()
The number of Riders which may ride upon this Rideable |
void |
setRideBasis(int basis)
Sets type of rideable object this is. |
void |
setRiderCapacity(int newCapacity)
Sets the number of Riders which may ride upon this Rideable |
java.lang.String |
stateString(Rider R)
Returns a string grammatically correct for the given rider when they are mounted on this Rideable |
java.lang.String |
stateStringSubject(Rider R)
Returns a string grammatically correct for this Rideable when Riders are mounted |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
addEffect, addNonUninvokableEffect, amDestroyed, baseEnvStats, delEffect, description, destroy, displayText, envStats, expirationDate, fetchEffect, fetchEffect, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, numEffects, rawImage, recoverEnvStats, sameAs, savable, setBaseEnvStats, 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.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
|---|
affectCharState, affectCharStats, affectEnvStats |
| 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.CMModifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
|---|
addBehavior, addScript, delBehavior, delScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts |
| Field Detail |
|---|
static final int RIDEABLE_LAND
static final int RIDEABLE_WATER
static final int RIDEABLE_AIR
static final int RIDEABLE_SIT
static final int RIDEABLE_SLEEP
static final int RIDEABLE_TABLE
static final int RIDEABLE_ENTERIN
static final int RIDEABLE_LADDER
static final int RIDEABLE_WAGON
static final java.lang.String[] RIDEABLE_DESCS
| Method Detail |
|---|
boolean isMobileRideBasis()
Rideableint rideBasis()
Rideablevoid setRideBasis(int basis)
basis - the RIDEABLE_* constant describing how this is riddenRideableint riderCapacity()
Ridervoid setRiderCapacity(int newCapacity)
newCapacity - the maximum ridersRiderint numRiders()
RiderRider fetchRider(int which)
which - which rider to detch
Rider,
Rideable,
numRiders()void addRider(Rider mob)
mob - Rider object, either an item or a mobRider,
Rideablevoid delRider(Rider mob)
mob - Rider object, either an item or a mobRider,
Rideableboolean amRiding(Rider mob)
mob - the Rider to check this Rideable for
Rider,
Rideablejava.lang.String stateString(Rider R)
R - The rider object to make grammatically correct.
Rider,
Rideablejava.lang.String putString(Rider R)
R - The rider object to make grammatically correct.
Rider,
Rideablejava.lang.String stateStringSubject(Rider R)
R - The rider object to make grammatically correct.
Rider,
Rideableboolean mobileRideBasis()
rideBasis()
java.lang.String mountString(int commandType,
Rider R)
R - The rider object to make grammatically correct.
Rider,
Rideablejava.lang.String dismountString(Rider R)
R - The rider object to make grammatically correct.
Rider,
Rideablejava.util.HashSet getRideBuddies(java.util.HashSet list)
list - the hashset into which to add all the mob riders
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||