T
- an extension of Followable, showing that Followables follow/are followed by FollowablesAffectable
, java.lang.Cloneable
, CMObject
, java.lang.Comparable<CMObject>
, Contingent
, Environmental
, Expireable
, Modifiable
, MsgListener
, Physical
, StatsAffecting
, Tickable
Alligator
, AngryCitizen
, Ape
, Assassin
, Beaver
, Bee
, BlackBear
, BlackDragon
, BlueDragon
, BrassDragon
, BronzeDragon
, BrownBear
, BrownSnake
, Buck
, Buffalo
, Bugbear
, Bull
, Cat
, Centaur
, Centipede
, Cheetah
, Chicken
, Chimp
, Citizen
, Cobra
, CombatDummy
, CommonBat
, CopperDragon
, Cougar
, Cow
, Coyote
, Crocodile
, Deer
, DireWolf
, Doe
, Dog
, Dolphin
, Doppleganger
, Dragon
, DrowElf
, DrowPriestess
, DrowWarrior
, DrowWizard
, Duck
, Elephant
, Falcon
, FireGiant
, FlyingInsect
, Fox
, Frog
, FrostGiant
, GardenSnake
, GenAuctioneer
, GenBanker
, GenCow
, GenDeity
, GenHorse
, GenLibrarian
, GenMob
, GenPostman
, GenRideable
, GenRideableUndead
, GenShopkeeper
, GenUndead
, GiantBat
, GiantScorpion
, Gnoll
, Goat
, GoatDoe
, Goblin
, GoldDragon
, Gorilla
, GreenDragon
, Hawk
, HeavenlyServent
, HillGiant
, Hornet
, Horse
, InvisibleStalker
, Jaguar
, Kitten
, LargeBat
, Lion
, Lizard
, LizardMan
, LizardManShaman
, Minotaur
, Monkey
, MountainLion
, Mouse
, Naga
, Ogre
, Orc
, Owl
, Panther
, Parakeet
, Pegasus
, PegasusGreater
, Penguin
, Pig
, Puppy
, Python
, Rabbit
, Rat
, Rattlesnake
, Raven
, RedDragon
, Rooster
, Scorpion
, Seal
, Shark
, Sheep
, SilverDragon
, Skeleton
, Snake
, Spider
, Squirrel
, StdAuctioneer
, StdBanker
, StdDeity
, StdFactoryMOB
, StdLibrarian
, StdMOB
, StdMobWrapper
, StdPostman
, StdRideable
, StdRideableWrapper
, StdShopKeeper
, StoneGiant
, StoneGolem
, Swordfish
, Teacher
, Tiger
, Toad
, Troll
, Turtle
, UmberHulk
, Undead
, Vulture
, Walrus
, Whale
, WhiteBear
, WhiteDragon
, WildEagle
, Wolf
, Wolverine
, Worm
, Wyvern
, Zombie
public interface Followable<T extends Followable<T>> extends Physical
idConverter
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
Modifier and Type | Method | Description |
---|---|---|
void |
addFollower(T follower,
int order) |
Adds/Alters a follower to this Followable, of the appropriate type, while
also setting the order/rank they hold in the line.
|
T |
amFollowing() |
Returns the followable that this followable follower is following, or null.
|
T |
amUltimatelyFollowing() |
If this followable follower is following a followable that is also following
a followable, then this will recursively determine the First followable and
return it.
|
void |
delFollower(T follower) |
Removes the given follower from this followable.
|
T |
fetchFollower(int index) |
Returns the followable follower at the give index in this collection
|
T |
fetchFollower(java.lang.String named) |
Returns the followable follower that best matches the given search
string name.
|
int |
fetchFollowerOrder(T thisOne) |
Returns the relative order/rank of the specific follower
in the formation.
|
java.util.Enumeration<Pair<T,java.lang.Short>> |
followers() |
Returns an enumeration of the followers of this Followable,
along with their relative rank/position in the formation.
|
java.util.Set<T> |
getGroupMembers(java.util.Set<T> list) |
Fills the given set with the Complete set of all followable followers by
counting not only this followable, but all the recursive followable
followers of this followable, and all the followables followed by this
followable and all their followable followers.
|
java.util.Set<? extends Rider> |
getGroupMembersAndRideables(java.util.Set<? extends Rider> list) |
Fills the given set with the Complete set of all followable followers by
counting not only this followable, but all the recursive followable
followers of this followable, and all the followables followed by this
followable and all their followable followers.
|
boolean |
isFollowedBy(T thisOne) |
Returns whether the given followable is following this
followable.
|
int |
numFollowers() |
Returns the total number of Direct followers
|
void |
setFollowing(T mob) |
Alters who this followable follower is following.
|
int |
totalFollowers() |
Returns the total number of followable followers following this followable
by counting not only the followable followers of this followable, but also
the followable followers of the followable followers of this followable,
recursively.
|
addEffect, addNonUninvokableEffect, basePhyStats, delAllEffects, delEffect, eachEffect, effects, fetchEffect, fetchEffect, numEffects, phyStats, recoverPhyStats, setBasePhyStats
copyOf, ID, initializeClass, newInstance
amDestroyed, destroy, isSavable, setSavable
description, displayText, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setImage, setMiscText, setName, text
expirationDate, setExpirationDate
getSaveStatIndex, getStat, getStatCodes, isStat, setStat
executeMsg, okMessage
description, displayText, genericName, name
affectCharState, affectCharStats, affectPhyStats
getTickStatus, name, tick
void addFollower(T follower, int order)
follower
- the new follower to followorder
- the relative position of the new follower in the formationsetFollowing(Followable)
void delFollower(T follower)
follower
- the follower to removeint numFollowers()
totalFollowers()
int fetchFollowerOrder(T thisOne)
thisOne
- the specific followableboolean isFollowedBy(T thisOne)
thisOne
- the followable follower to look for.java.util.Enumeration<Pair<T,java.lang.Short>> followers()
T fetchFollower(int index)
index
- the index (0-based) of the followable followerT fetchFollower(java.lang.String named)
named
- the search string nameint totalFollowers()
numFollowers()
T amFollowing()
T amUltimatelyFollowing()
void setFollowing(T mob)
mob
- the follower followingaddFollower(Followable, int)
java.util.Set<T> getGroupMembers(java.util.Set<T> list)
list
- requires list to populate with followablesjava.util.Set<? extends Rider> getGroupMembersAndRideables(java.util.Set<? extends Rider> list)
list
- requires list to populate with followables and rideables